How to disable revalidation? #469
Answered
by
sergiodxa
BrunoQuaresma
asked this question in
General
-
I have a current component with a modal but every time a click in the modal and close it the fetch is being called. I'm currently using this without success:
Is that possible to say to useSWR "Just loads this data once"? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jun 17, 2020
Replies: 1 comment
-
Check #450, there you can see how to use it, however it's not recommended to disable revalidation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BrunoQuaresma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check #450, there you can see how to use it, however it's not recommended to disable revalidation.