-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
When a child $effect is triggered by a function call inside a template expression, it does not run after the component is mounted. See the linked reproduction for a simple example. Notice how the same effect works as expected when a {@const ...} tag is used instead of calling the function inline. The effect also starts to work as expected after the template is conditionally re-rendered; try toggling the checkbox. Is this difference in behavior expected?
Reproduction
Logs
No response
System Info
Svelte 5.0.0-next.269Severity
annoyance