-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Legacy #await problem #14351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I ran into the same problem and worked around it by turning the function calls into plain promises like so |
|
@dummdidumm What exactly is this dependency tracking, when does it come up? Function calls haven't been invalidated by dependencies in the past. |
I find this hidden reactivity somewhat counterintuitive, given that we have runes specifically designed for declaring reactive values. Wasn't one of the key selling points of runes that they provide a clearer and more intentional way to define reactivity? |
Describe the bug
Await block unexpectedly evaluates expression upon state changes in legacy mode.
Expected behavior is to only have the expression evaluated when its variables change.
Reproduction
https://svelte.dev/playground/53cc8a72175c41c6bebb2bbb75d069a7?version=5.2.3
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: