In documentation for "Invalidation from Mutations", why isn't invalidateQueries awaited? #1738
Replies: 2 comments 5 replies
-
Could be wrong but I'm under the impression invalidateQueries is synchronous |
Beta Was this translation helpful? Give feedback.
-
@kkalavantavanich @meandillar From looking through the source code, it appears there is both a synchronous and an asynchronous component of @tannerlinsley is this understanding correct? Could be documented better if so... I spent some time trying to figure this out as IntelliJ was giving me [Note: IntelliJ's suggested fix to these warnings is to append |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation for "Invalidation from Mutations", there is an example:
Why are the
invalidateQueries
methods not awaited, as in:or a similar parallelized awaited promise? Is it not important that the
onSuccess
completes when the inner promise completes?Beta Was this translation helpful? Give feedback.
All reactions