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

Wrong documentation in tutorial: Universal reactivity #1233

Closed
dancek opened this issue Mar 28, 2025 · 1 comment
Closed

Wrong documentation in tutorial: Universal reactivity #1233

dancek opened this issue Mar 28, 2025 · 1 comment

Comments

@dancek
Copy link

dancek commented Mar 28, 2025

https://svelte.dev/tutorial/svelte/universal-reactivity

The text states:

The components in this exercise are all importing the counter object from shared.js. But it’s a normal object, and as such nothing happens when you click the buttons.

However, when you click the buttons in the unedited view, the counters are incremented.

I'm not sure how this should be fixed but it seems wrong.

@dancek
Copy link
Author

dancek commented Mar 28, 2025

I'm surprised that the counters work, too. Doesn't match my mental model of Svelte. I'd be happy to hear a quick explanation if it's not too much trouble.

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