Replies: 1 comment 2 replies
-
If you have some local state that you use to enable the query, it will react to that change. The query will enable / disable according to that state. But this just means that the query won't request something from the backend. if you have data in the cache, you will always get that. What you can do is:
|
Beta Was this translation helpful? Give feedback.
2 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.
-
Example code:
I kind of expected the 2nd
data
to be null becauseenabled
is false, i.e. this query is disabled. But I guess it's still returning the cached value.After reading the docs on
enabled
option, I can't decide whether this is expected behaviour or not. If it is, then is there an alternative option that can be used or added as a new feature?Beta Was this translation helpful? Give feedback.
All reactions