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: Theme state logic to account for non-prefers-color-scheme usage #1082

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

danieldelcore
Copy link
Contributor

@danieldelcore danieldelcore commented Feb 11, 2024

What kind of change does this pull request introduce?

Fixes a regression where themes are not updated on change.

Closes: #1080

What is the current behavior?

Themes don't change when the theme prop is updated

What is the new behavior?

Themes now change as expected

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  • yarn dev:react
    -open http://localhost:6006/?path=/story/presets-themes--theme-switcher
  • Toggle select box
  • Works ✅

Checklist

  • Documentation;
  • Storybook (if applicable);
  • Tests;
  • Ready to be merged;

Copy link

codesandbox bot commented Feb 11, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Feb 11, 2024

@danieldelcore is attempting to deploy a commit to the CodeSandbox Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3265ab6:

Sandbox Source
Sandpack Configuration
sandpack-run-stale-value Configuration

Copy link
Member

@danilowoz danilowoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh thanks

@danilowoz danilowoz merged commit 3fcd51d into codesandbox:main Feb 12, 2024
8 of 11 checks passed
@danieldelcore
Copy link
Contributor Author

No worries! Thanks for the review!

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.

SandpackProvider not triggering rerenders when props change on NextJS 13/14
2 participants