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

Tutorial - basic - Reactive state and $effect (05-effects) #1278

Open
Tomassito opened this issue Apr 8, 2025 · 0 comments
Open

Tutorial - basic - Reactive state and $effect (05-effects) #1278

Tomassito opened this issue Apr 8, 2025 · 0 comments

Comments

@Tomassito
Copy link

In basic tutorial lesson on effects:
https://github.com/sveltejs/svelte.dev/tree/main/apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/05-effects

it is stated that reactivity is only useful if we do something in response:

"state is only reactive if something is reacting to it, otherwise it’s just a sparkling variable."

And the $effect rune is given as an immediate example.
But at the same time we see the warning that this rune should not be used too much...

This is not logically cohesive in my opinion.
(We give first example of how something (reactivity in this case) can be utilized, but right away we discourage this usage).

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