Skip to content
Discussion options

You must be logged in to vote

because the queryKey changes, and the query has a default staleTime of zero, so you'll get a background refetch. I would use the same staleTime of 10 seconds or so on the query: https://codesandbox.io/s/hopeful-star-l1pf2y?file=/pages/index.js

feel free to PR this to the examples if you want

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Phaster911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants