Skip to content
Discussion options

You must be logged in to vote

Should I pass the query string to the key?

yes. Every time the key changes, react-query will refetch. It’s kinda like a dependency array to a useEffect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leo-petrucci
Comment options

Answer selected by leo-petrucci
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