mirror of https://github.com/sveltejs/svelte
- move effect cleanup to happen before new creation in key function - ensure proper lifecycle order. destroy old component -> create new component - so now the order is script -> mount -> abort -> destroy -> script -> mountpull/16684/head
parent
bde51ed7dc
commit
00819509e5
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: fixed component lifecycle timing issue in #key blocks. its now properly cleaned up before new instance are created.
|
Loading…
Reference in new issue