Skip to content

prefetchQuery vs refetchQueries #509

Discussion options

You must be logged in to vote

prefetchQuery will create a query if one does not exist or update the data for one if it does. It's basically like using useQuery, but not as a hook

refetchQueries is for refetching one (or more) queries that match the query key passed. If none are found, then nothing happens.

Replies: 1 comment

Comment options

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