mirror of https://github.com/sveltejs/svelte
fix: ensure HMR wrapper forwards correct start/end nodes to active effect (#17985)
Fixes #17982 (two issues reported there) Adding the start/end statically at the end once does not work because it's going to be stale when there's a HMR reload of the wrapped component. For reasons not completely clear to me it also fails in another case. So instead of wrapping the HMR with comments we just forward the nodes of the inner effect to the outer active effect, pretending the wrapper isn't there from a "remove dom nodes"-perspective.pull/17984/head
parent
b90a5dfb61
commit
1773cb5b59
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure HMR wrapper forwards correct start/end nodes to active effect
|
||||
Loading…
Reference in new issue