Disabling cookies breaks the app #1175
Answered
by
tannerlinsley
meandillar
asked this question in
General
Replies: 1 comment 2 replies
-
React Query doesn’t use local storage. The devtools does, but AFAIK is guarded against this situation.
…On Oct 14, 2020, 9:42 PM -0600, meandillar ***@***.***>, wrote:
I noticed that disabling cookies crashes my app. I assume because react-query uses local storage.
I'm using next.js with a ReactQueryCacheProvider component wrapping my app in _app.js
Currently just getting a white screen and Error was not caught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. in the console. Would it be an option react-query to handle the error and enable the app to load without any data?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
meandillar
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 noticed that disabling cookies crashes my app. I assume because react-query uses local storage.
I'm using next.js with a
ReactQueryCacheProvider
component wrapping my app in_app.js
Currently just getting a white screen and
Error was not caught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
in the console. Would it be an option react-query to handle the error and enable the app to load without any data?Beta Was this translation helpful? Give feedback.
All reactions