In next-app, at [email protected], use global SWRConfig and cache meet with window is undefined. #2009
Unanswered
lichangyuan1993
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.
Uh oh!
There was an error while loading. Please reload this page.
-
enviroment: react 18.1.0 , nextjs 12.1.6, swr 1.3.0.

I want to use global cache in swr, so I use
localStorageProvider
according to swr's documentation, but the browser promptsnow, i need help !!!
_app.js
pages/third.js
Beta Was this translation helpful? Give feedback.
All reactions