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

fix: Ensure passed-in initial code overrides localStorage in REPL #1167

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Jul 17, 2024

Our useStoredValue hook defaults to preferring localStorage which we do not want as we already have a defined list of fallback values, namely, with query params (?code or ?example) taking precedence.

As such, this bug breaks an attempt to load a code sample from a link if the user has previously used our REPL.

@rschristian rschristian merged commit 54bc153 into master Jul 17, 2024
5 checks passed
@rschristian rschristian deleted the fix/repl-restore-from-ls branch July 17, 2024 04:54
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

Successfully merging this pull request may close these issues.

2 participants