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

localStorage in Island, SyntaxError: "[object Object]" is not valid JSON #1412

Closed
afifurrohman-id opened this issue Jul 6, 2023 · 2 comments

Comments

@afifurrohman-id
Copy link

i'm trying parse JSON in localStorage in Island, but going error

JSON.parse(localStorage.getItem('some_json')!)

Why island prerender in server?, this error is on terminal, not browser console.

@afifurrohman-id afifurrohman-id changed the title localStorage in Island, Error: "[object Object]" is not valid JSON localStorage in Island, Error: "[object Object]" is not valid JSON Jul 6, 2023
@afifurrohman-id afifurrohman-id changed the title localStorage in Island, Error: "[object Object]" is not valid JSON localStorage in Island, SyntaxError:: "[object Object]" is not valid JSON Jul 6, 2023
@afifurrohman-id afifurrohman-id changed the title localStorage in Island, SyntaxError:: "[object Object]" is not valid JSON localStorage in Island, SyntaxError: "[object Object]" is not valid JSON Jul 6, 2023
@afifurrohman-id afifurrohman-id changed the title localStorage in Island, SyntaxError: "[object Object]" is not valid JSON localStorage in **Island**, SyntaxError: "[object Object]" is not valid JSON Jul 6, 2023
@afifurrohman-id afifurrohman-id changed the title localStorage in **Island**, SyntaxError: "[object Object]" is not valid JSON localStorage in Island, SyntaxError: "[object Object]" is not valid JSON Jul 6, 2023
@deer
Copy link
Contributor

deer commented Jul 12, 2023

Can we close this as a duplicate of #975?

@marvinhagemeister
Copy link
Collaborator

Good idea, #975 describes the use case already.

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

3 participants