-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Svelte 5: next.28 -> next.29 $state array bug #10120
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
This sounds like #10118 - is it the same issue? |
You are right - it is the same! |
This bug (issue 1) is not fixed by #10121 |
Ah yes, sorry. So many issues I was working on linked back to this one, so I must have tagged this from that. |
Mhm I don't think there's anything we can do here. When the object is added to the array, it's proxified, so the comparison is now between a proxy of the item and the item, which returns false. |
This is then a breaking change!
|
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
something changed between next.28 -> next.29
$state is now defect
I found 2 issues:
inserted objects to state array are not the same
You can see this in example, because delete in setTimeout does not work
after insertig some items and removing them all (click on toast to remove),
here are some issues adding new items... they don't show up or they show up after many clicks.
Reproduction
next.28 working
next.29 not working
LINK
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: