How to inject some queryKeys to all useQuery ? #5299
Unanswered
vaynevayne
asked this question in
Q&A
Replies: 1 comment
-
Do you want to put a value of token into queryKeys? I don't see why you need it, it seems useless. Fetch requests are described in queryFn, you can just set global constant of token and use it in queryFn. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
i have some common gloabl params that every request need it, such as token, timezero...
Beta Was this translation helpful? Give feedback.
All reactions