prefetchQuery vs refetchQueries #509
Answered
by
tannerlinsley
denisborovikov
asked this question in
General
|
Does Updating multiple queries in a single |
Answered by
tannerlinsley
May 22, 2020
Replies: 1 comment
|
|
0 replies
Answer selected by
denisborovikov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
prefetchQuerywill create a query if one does not exist or update the data for one if it does. It's basically like usinguseQuery, but not as a hookrefetchQueriesis for refetching one (or more) queries that match the query key passed. If none are found, then nothing happens.