-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Describe the bug
Same referenced objects in a list not updated simultaneously, $state handles them as complete different entries.
Reproduction
Here is a minimal example what I get in svelte 4 and can't get in svelte 5
So I did implement a workaround by declaring a reactive wrapper class
with this, at least it works but what I want is also updating raw rows as I refer them as coming from another library/method so I don't want to pass them with their proxified version to other typescript methods and there is a alot of usages so I don't really wanted call $state.snapshot() everytime (also don't want to broke original references).
Well I did come up something like this. using $state.raw and manual reactivity triggering
svelte 5 workaround + bind fix REPL
Not proud of it but works, with a lot of warnings and not sure it will continue to work.
We are migrating svelte 4 to svelte 5 and its a blocking behavior for us.
Logs
System Info
-
Severity
blocking an upgrade