-
-
Notifications
You must be signed in to change notification settings - Fork 950
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
HMR Issue with Parcel 2.0.0 release #693
Comments
This starter doesn't seem to be even using Solid's HMR library Solid Refresh (or any custom one for that matter). I think Parcel's default behavior must be just re-run the JavaScript again without cleaning up after itself? Since this isn't using Solid's method of HMR I'm sort of leaning towards this being a Parcel thing. But maybe that is their intended functionality. You can't really do a reload without them literally reloading the browser page and if they aren't doing that well that's the problem. |
Thank you for the response. The default behavior of Parcel, according to docs and to discussions I found in their old GitHub Issues, is to do a window.location.reload unless module.hot is explicitly called. That was the behavior up until the 2.0.0 release, so there must have been some regression. I'm going to file an issue on the Parcel repo. |
@lucaseverett Did this ever go anywhere? Did you create the issue with Parcel? |
I created an issue for it, but there hasn't been any action on it yet. |
Must be an upstream issue. I tested the latest Parcel 2 with solid and solid-refresh@^0.3.0 and there shouldn't be any issues. |
Yes, it's a Parcel bug, and it was caused by a commit made on September 25. There are several open issues that all seem to be related to this bug. I edited the hmr-runtime.js file and removed |
A PR was merged today to fix this issue. I tested the latest nightly and the issue no longer happens. |
Describe the bug
When using Parcel 2.0.0 final release, the root node is duplicated upon saving a file, rather than replacing it. For example, when using the Solid Parcel Starter, you'll see the following after saving a file.
To Reproduce
npm i
andnpm run dev
npm i
andnpm run dev
Expected behavior
Upon saving a file the page content should be replaced rather than duplicated.
Additional context
I'm not sure if this is a Parcel bug or something within Solid. It doesn't happen when using Parcel 2.0.0-rc.0. The default behavior of Parcel is to simply reload a page if HMR isn't explicitly called.
The text was updated successfully, but these errors were encountered: