Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashing when opening two tabs #38

Open
lucasMontenegro opened this issue Nov 11, 2019 · 0 comments
Open

App crashing when opening two tabs #38

lucasMontenegro opened this issue Nov 11, 2019 · 0 comments

Comments

@lucasMontenegro
Copy link

What Happened

There is an error message in the console:

Uncaught SyntaxError: Unexpected token o in JSON at position 1
    at Object.parse (<anonymous>)
    at Object.current (use-persisted-state.m.js:52)
    at n (event-listener.m.js:10)

I also put a console.log in node_modules/use-persisted-state and it seems to be parsing null as a JSON string.

How to reproduce

  1. Go to the sample app provided in the README: https://mzj64x80ny.csb.app/
  2. Open the same app on another tab and toggle the dark mode.
  3. Go back to the first opened tab and check the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant