Disable auto fetch #1076
Unanswered
vinay-deshmukh
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With react-query, I am able to disable fetching, until I want to trigger it via an event handler, by setting
enabled: false
What is the SWR equivalent to disable auto fetching until I trigger it?
I looked at
revalidateOnMount
, but when new key is generated, due to the props being used in the key, this is automatically triggering the fetch.Beta Was this translation helpful? Give feedback.
All reactions