Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The issue
queryClient.prefetch
doesn't accept and doesn't triggeronSuccess
whileuseQuery(fetchingObject)
does.This is an issue because:
we can then use the same object for the different triggers, such as
useQuery
andqueryClient.prefetch
.onSuccess
could be very helpful when prefetching.Beta Was this translation helpful? Give feedback.
All reactions