-
We're looking to hide some latency in an app by having a query execute asynchronously while we navigate to a different screen. It's a bit unclear to me who owns the object returned by
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
yes
yes, unless you use query cancellation.
callbacks are tied to the react lifecycle. If the component is mounted, they will be called, otherwise not. Mutations are different (but that wasn't the question) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. For mutations, will their callbacks (e.g. |
Beta Was this translation helpful? Give feedback.
yes
yes, unless you use query cancellation.
callbacks are tied to the react lifecycle. If the component is mounted, they will be called, otherwise not. Mutations are different (but that wasn't the question)