Allow enabled
prop on useSuspenseQuery
#7639
Unanswered
MrFlashAccount
asked this question in
General
Replies: 1 comment
-
Hey, I am facing a similar issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
On our project, we have a bunch of
suspense
queries that depend onenv
parameters(if env flag is not provided, we skip this query), but this leads to a suboptimal experience - fallback shows up for a moment. Simple repro can be found here: CodesandboxI think it'd be a good idea to allow passing the
enabled
prop inuseSuspenseQuery
. In that case,data
would have typeReturnType<typeof queryFn> | InitalValue
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions