prefetchQuery vs refetchQueries #509
-
Does Updating multiple queries in a single |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
-
Does Updating multiple queries in a single |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
prefetchQuery
will 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 hookrefetchQueries
is for refetching one (or more) queries that match the query key passed. If none are found, then nothing happens.