Replies: 1 comment 1 reply
-
Hi, you don't say what behaviour you would prefer here. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Is this the standard behaviour that all swr hooks refetch the data on mount even if the key hasn't changed? What is the reasoning for that? I have hook that downloads large files and I have the files checksum as one of the cache key and even when the checksum stays the same between mounts/rerenders, the fetch method of the swr hook is still called.
When I set "revalidateOnMount" to false then the fetch function is never called.
Where is my misunderstanding?
Beta Was this translation helpful? Give feedback.
All reactions