Add isObserved
to UseQueryResult
#2507
Unanswered
madisonbullard
asked this question in
Ideas
Replies: 1 comment 1 reply
-
the on a query, there is a public method which is also what the devtools are using to determine if a query is
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case:
useIsFetching
/useIsMutating
to determine when to show/hidequeryClient.prefetchQuery()
, but I don't want the global loading UI to be displayed for prefetchesIdeal solution:
isObserved: boolean
toUseQueryResult
so I can prevent loading UI from showing for queries with no observer:Current hacky solution:
If there is another way to accomplish this, please let me know!
Thanks so much for an amazing library 🎉
Beta Was this translation helpful? Give feedback.
All reactions