-
I have been using looking to upgrade my swr version however noticed after changing initialData to fallbackData the hook would recall the endpoint client side. Is there a way to achieve what initalData originally did to prevent the duplicate call? |
Beta Was this translation helpful? Give feedback.
Answered by
shuding
Oct 13, 2021
Replies: 1 comment 1 reply
-
I think |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Absanater
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
revalidateIfStale: false
is what you need. The downside is the data will not be refreshed on hydration (if that’s ok for you).