mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
623340a1de
Closes #9420. This PR creates an $effect.pre (before beforeUpdate and an $effect (for afterUpdate) and, inside those, listen for all locally declared signals plus reactive props. This does mean that we need to link the locally declared signals to the component context (the reverse of the current behaviour, wherein we link the component context to locally declared signals).
6 lines
103 B
Markdown
6 lines
103 B
Markdown
---
|
|
'svelte': patch
|
|
---
|
|
|
|
fix: align `beforeUpdate`/`afterUpdate` behavior better with that in Svelte 4
|