codesandbox / codesandbox/codesandbox-client

Codesandbox Saving Color Theme and Autosave

Open
#6,009 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

So,
I'm setting my color theme and autosave settings in codesandbox, and it works while I'm on the editor, but when I reload the page, the settings are no longer saved. I have looked at the localStorage and it seems like my settings are being set to the default when the page reloaded. Any idea how I can fix this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in CodeSandbox by changing the color theme and autosave settings, then reloading while inspecting localStorage. Trace where those settings are written and reset during page initialization. Done means both settings persist after reload; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.