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
This works as expected. You're reading value only in the else branch, which isn't picked up the first time. Hence the effect does not register value as a dependency, and so it never reruns. Make sure to read value in all branches.
Describe the bug
The effect doesn't run when it's dependency changes.
Explaining would just be pseudocode so see https://github.com/IOnlyNeedParenthesis/svelte5-effect-untrack-repro/blob/main/src/routes/test/%2Bpage.svelte
Reproduction
https://github.com/IOnlyNeedParenthesis/svelte5-effect-untrack-repro
Logs
No response
System Info
System: OS: Linux 6.10 Arch Linux CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 4.30 GB / 15.40 GB Container: Yes Shell: 5.2.32 - /usr/bin/bash Binaries: bun: 1.1.29 - /tmp/bun-node-6d43b3662/bun npmPackages: svelte: ^5.0.0-next.1 => 5.0.0-next.259 Browser is firefox
Severity
annoyance
The text was updated successfully, but these errors were encountered: