0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
Rich Harris
623340a1de
fix: make beforeUpdate/afterUpdate behave more like Svelte 4 (#10408)
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).
2024-02-07 10:36:36 +01:00