Skip to content
Discussion options

You must be logged in to vote

Put all your dependencies that should trigger a refetch into the queryKey of the dependent query. react-query will automatically refetch if the queryKey changes. Alternatively, you can use the refetch method and fire it off in a useEffect.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vago
Comment options

@TkDodo
Comment options

@vago
Comment options

Answer selected by vago
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