invalidate vs refetch
Say this post in twitter
1: is it safe to use
2: and bring the whole
3: which bring me to another question that is the difference between
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?