-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
feature requestNew feature or requestNew feature or request
Description
In my application, I don't want useSWR
hook to automatically call the fetcher function. I want to call it in one of my event handlers.
What did you try?
-
I tried setting
refetchOnMount
as false, but then on the next render, the fetch request happened anyway. -
Tried making
isPaused()
return true always, but this meansmutate()
calls also don't work.
##Expected behaviour
Flag/boolean config that disables "auto fetching", and only fetches when user calls mutate()
.
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request