Skip to content

State nested inside of SvelteMap is no longer reactive #15838

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

Open
WaltzingPenguin opened this issue Apr 26, 2025 · 1 comment
Open

State nested inside of SvelteMap is no longer reactive #15838

WaltzingPenguin opened this issue Apr 26, 2025 · 1 comment

Comments

@WaltzingPenguin
Copy link

Describe the bug

If SvelteMap is used to access an object containing state, the result is no longer reactive sometime after 5.23.0.

Reproduction

https://svelte.dev/playground/8f3e032e86604e9db9c4de89c39707f0?version=5.23.0
Pinned against 5.23.0
Works as intended, it displays "Loading..." and then is replaced with an image of Eevee

https://svelte.dev/playground/8f3e032e86604e9db9c4de89c39707f0?version=5.28.2
Latest Version
View is stuck displaying "Loading...". No errors or warnings are issued. Changing the id to 132 and then back to 133 will cause the view to update correctly.

Logs

System Info

Reproducible with web REPL

Severity

blocking an upgrade

@harrisi
Copy link

harrisi commented Apr 30, 2025

This seems to be caused by #15564.

EDIT: bisected to 5.24.0 being the breaking change, and tested all other commits between 5.23.3 and 5.24.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants