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
The docs state that reactive assignments only trigger when values they depend on have changed. However this does not appear to be the case. Reactive assignments seem to trigger unexpectedly.
This has cropped up in particular when trying to create a copy of a store object when the store changes (which is a common use case with forms where you don't want to mutate the global store until the form is saved).
So far, the only surefire solution appears to be to subscribe to the store manually, as reactive assignments all appear to trigger unexpectedly.
Describe the bug
The docs state that reactive assignments only trigger when values they depend on have changed. However this does not appear to be the case. Reactive assignments seem to trigger unexpectedly.
This has cropped up in particular when trying to create a copy of a store object when the store changes (which is a common use case with forms where you don't want to mutate the global store until the form is saved).
So far, the only surefire solution appears to be to subscribe to the store manually, as reactive assignments all appear to trigger unexpectedly.
Reproduction
https://svelte.dev/repl/6ffc787bb6fd42f1a2590b98ff8838cd?version=3.46.2
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: