Skip to content

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

Open
@Tomassito

Description

@Tomassito

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions