Cache doesn't appear to work #837
Unanswered
jordyvandomselaar
asked this question in
Q&A
Replies: 0 comments
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.
-
I call an API endpoint like this:
As far as I understood SWR, it would cache the response and re-use it for any additional calls to the same endpoint as long as I don't call
mutate()
or the user minimizes the browser.However, I render this component multiple times and I still see multiple calls going to the API. Am I misunderstanding this or am I missing someting?
Beta Was this translation helpful? Give feedback.
All reactions