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 hmr dispose of styleEl #1425

Merged
merged 1 commit into from
Oct 29, 2020
Merged

fix hmr dispose of styleEl #1425

merged 1 commit into from
Oct 29, 2020

Conversation

solenoid
Copy link
Contributor

try to fix #1412

Changes

Moves the removeChild(styleEl) call into the same scope that styleEl was created in.

Testing

Ran through the reproduction steps in the issue and then tried changing the color to see it update and no longer error.

Docs

bug fix only

@vercel
Copy link

vercel bot commented Oct 28, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/38hazbko9
✅ Preview: https://snowpack-git-fix-hmr.pikapkg.vercel.app

@FredKSchott
Copy link
Owner

Ah, thank you! We made this change too quickly to fix SSR, it should have had more testing as a part of the original PR. Thanks for the fix!

@FredKSchott FredKSchott merged commit 0fda79d into FredKSchott:master Oct 29, 2020
peterhpchen pushed a commit to peterhpchen/snowpack that referenced this pull request Oct 31, 2020
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.

HMR not working for Sass plugin + CSS Modules
2 participants