Replies: 1 comment 5 replies
-
What do you want to achieve by knowing that? Generally, a query cannot be enabled or disabled - only an observer can. The query is still subscribed to the cache and will return cached data - enabled or not. enabled:false just means: This observer won't fetch data by itself. And that info usually isn't that relevant. If you write a custom hook, you would have to return that information alongside your query, e.g.:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A custom hook might return a
useQuery()
. How can the consumer know if the query is enabled or not?Beta Was this translation helpful? Give feedback.
All reactions