TanStackT
TanStack3mo ago
1 reply
verbal-lime

invalidate vs refetch

Say this post in twitter
1: is it safe to use refetch this way when available ?
2: and bring the whole const queryClient = useQueryClient() only when invalidating queries not available in the current components?

3: which bring me to another question that is the difference between queryClient.refetchQueriesand queryClient.invalidateQueries?
G4WCHhIW8AAb2au.png
Was this page helpful?