You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
afterUpdate should run every time a component has been updated but currently it only runs if the prop that changes is actually been used in the template.
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).
Describe the bug
afterUpdate should run every time a component has been updated but currently it only runs if the prop that changes is actually been used in the template.
Reproduction
for reference this is svelte 4 behavior Svelte 4 REPL
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: