Skip to content
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

sv migrate svelte-5 should update reactive use of Map to SvelteMap #14674

Open
eedmond opened this issue Dec 9, 2024 · 0 comments
Open

sv migrate svelte-5 should update reactive use of Map to SvelteMap #14674

eedmond opened this issue Dec 9, 2024 · 0 comments

Comments

@eedmond
Copy link

eedmond commented Dec 9, 2024

Due to Svelte 5's change that classes are no longer auto reactive, the migration tool should not create $state(new Map(...)), but instead $state(new SvelteMap(...)).

It took me a long time to sort out why my component was no longer reactive after the update, so this would likely save people a lot of headache. Thanks!

SvelteMap docs

@manuel3108 manuel3108 transferred this issue from sveltejs/cli Dec 11, 2024
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

1 participant