Replies: 1 comment 6 replies
-
query cancellation puts a query back to the state it was previously in. once data is populated, it won’t be removed (not even if an error occurs). What’s your use case? Maybe there’s a different way to get there :) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I have code that looks a little something like
However, if the query already contains data and is cancelled, the promise returned by
refetch()
will resolve anddata
will still be populated. So// do something
will run, which is not what I want when a query is cancelled.How can I detect if a query has been cancelled from
refetch()
's return value?Beta Was this translation helpful? Give feedback.
All reactions