Replies: 1 comment
-
you can use the
But really, you usually shouldn't need this. The client doesn't tell the backend to use a cache or not use a cache. This is a really suboptimal api design and imo the best course of action is to change that. |
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.
-
Hi, I have a bit of an odd use case where I need to call an API with a param that changes under certain conditions.
For ex.,
use_cache=false
use_cache=true
use_cache=false
use_cache=true
I tried doing this by making "use_cache" as React state that gets passes to useQuery() however I'm not sure how to set it back after the successful fetch.
Beta Was this translation helpful? Give feedback.
All reactions