Replies: 1 comment
-
Can you be more specific, what do you want todo, and why only for the first time? Should the query still re-fetch? If not - staleTime: Infinity and onSuccess callback could work. Otherwise, have a useEffect and listen to the isLoading flag maybe? But it’s not guaranteed to run only once |
Beta Was this translation helpful? Give feedback.
0 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.
-
i want to do something only when the first time load success, how to do that please?
Beta Was this translation helpful? Give feedback.
All reactions