File tree 1 file changed +8
-2
lines changed
src/features/providers/hooks
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- import { v1ListProviderEndpointsQueryKey } from '@/api/generated/@tanstack/react-query.gen'
1
+ import {
2
+ v1ListAllModelsForAllProvidersQueryKey ,
3
+ v1ListProviderEndpointsQueryKey ,
4
+ } from '@/api/generated/@tanstack/react-query.gen'
2
5
import { useQueryClient } from '@tanstack/react-query'
3
6
import { useCallback } from 'react'
4
7
import { invalidateQueries } from '../../../lib/react-query-utils'
@@ -7,7 +10,10 @@ export function useInvalidateProvidersQueries() {
7
10
const queryClient = useQueryClient ( )
8
11
9
12
const invalidate = useCallback ( async ( ) => {
10
- invalidateQueries ( queryClient , [ v1ListProviderEndpointsQueryKey ] )
13
+ invalidateQueries ( queryClient , [
14
+ v1ListProviderEndpointsQueryKey ,
15
+ v1ListAllModelsForAllProvidersQueryKey ,
16
+ ] )
11
17
} , [ queryClient ] )
12
18
13
19
return invalidate
You can’t perform that action at this time.
0 commit comments