File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ export const useEditContentQuery = (request: EditContentRequestItem) => {
311
311
312
312
queryClient . invalidateQueries ( CONTENT_LIST_KEY ) ;
313
313
queryClient . invalidateQueries ( CONTENT_ITEM_KEY ) ;
314
+ queryClient . invalidateQueries ( LIST_SNAPSHOTS_KEY ) ;
314
315
queryClient . invalidateQueries ( ADMIN_TASK_LIST_KEY ) ;
315
316
queryClient . invalidateQueries ( POPULAR_REPOSITORIES_LIST_KEY ) ;
316
317
} ,
@@ -705,6 +706,7 @@ export const useTriggerSnapshot = (queryClient: QueryClient) => {
705
706
title : 'Snapshot triggered successfully' ,
706
707
id : 'trigger-snapshot-success' ,
707
708
} ) ;
709
+ queryClient . invalidateQueries ( LIST_SNAPSHOTS_KEY ) ;
708
710
queryClient . invalidateQueries ( CONTENT_LIST_KEY ) ;
709
711
} ,
710
712
onError : ( err ) => {
@@ -767,6 +769,8 @@ export const useIntrospectRepositoryMutate = (
767
769
id : 'introspect-repository-success' ,
768
770
} ) ;
769
771
}
772
+ queryClient . invalidateQueries ( CONTENT_ITEM_KEY ) ;
773
+ queryClient . invalidateQueries ( LIST_SNAPSHOTS_KEY ) ;
770
774
queryClient . invalidateQueries ( ADMIN_TASK_LIST_KEY ) ;
771
775
} ,
772
776
// If the mutation fails, use the context returned from onMutate to roll back
You can’t perform that action at this time.
0 commit comments