Skip to content

Should legacy mode be explained in the tutorial? #1276

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
brunnerh opened this issue Apr 8, 2025 · 0 comments
Open

Should legacy mode be explained in the tutorial? #1276

brunnerh opened this issue Apr 8, 2025 · 0 comments

Comments

@brunnerh
Copy link
Member

brunnerh commented Apr 8, 2025

As long as legacy mode exists, there is a reasonable chance that it will cause problems.
I have seen a lot of confusion leading up the release of Svelte 5 due to the automatic mode switches.

If new projects are initialized with a global flag for runes mode, I think it would be fine to not explain it, but last time I checked, this would cause issues with component library dependencies that are legacy since the flag affects those as well, unless dynamic compiler options are used which exclude node_modules.

I think the lack of fine-grained reactivity in legacy is not that much of an issue, but people might work on imported, unreactive data without any runes and assignments trigger reactivity via legacy mode, so everything looks correct but when they later introduce a rune it mysteriously breaks.

Relates to:

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