-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Second-level function not doing reactive update #14755
Comments
Are you intentionally staying in Svelte v4? |
Yes, see this issue for my issue with Svelte 5 Runes: #14754 |
I see. Ok, in this case, what you present here is Svelte v4's inability to refactor things in a nice way, and one of the main drivers for signals (runes). Generally speaking, what you want is not possible. Maybe some son of a gun like a core team member could help you further here, so I'll just shut up now since I have no solutions for you. |
Yup this is just how svelte 4 works and one of the main reasons why svelte 5 is a rewrite. Thanks for reporting but I'm gonna close this |
BTW, if PR #14639 is released, you could pair it with |
It would be nice to have a way to manually trigger or wrap |
Describe the bug
Second-level function updates are not triggering reactive update, as it's not wrapped with
$.mutate
by the compiler. Is there a way to manually do$.mutate
?Reproduction
https://svelte.dev/playground/19fcb36153b84f83b83fb9ba92b38463?version=5.14.4
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: