-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 bugs #7514
Fix HMR bugs #7514
Conversation
|
Benchmark ResultsKitchen Sink ✅
Timings
Cold Bundles
Cached Bundles
React HackerNews ✅
Timings
Cold BundlesNo bundle changes detected. Cached BundlesNo bundle changes detected. AtlasKit Editor ✅
Timings
Cold Bundles
Cached Bundles
Three.js ✅
Timings
Cold BundlesNo bundle changes detected. Cached Bundles
|
return accepted; | ||
} | ||
|
||
function hmrAcceptCheckOne( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess the idea was that hmrAcceptCheck
does the parent traversal and hmrAcceptCheckOne
just checks if the single asset accepts, without the ancestry? But hmrAcceptCheckOne
still calls hmrAcceptCheck
, is that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be ok because it only happens for the initial bundle, not when finding parents (because depsByBundle
is null then).
Is this PR included in |
Yes |
using 2.0.0-nightly.961 and hmr still not working for css |
@Nikruto your example works fine for me |
Fixes HMR only updates first component type when shared local dependency is saved #4801
Possibly also fixes #6685, but I couldn't find a reproduction in that issue that didn't already work...