Skip to content

Documentation error on $effect.tracking #13925

@entrenadorhispano

Description

@entrenadorhispano

Describe the bug

https://svelte.dev/docs/svelte/$effect#$effect.tracking

  1. Demo is broken, it uses $effect.active() instead of $effect.tracking()
  2. in template: {$effect.active()}

    it should be false (its not running inside an effect context)

Reproduction

TO SEE THE BUG

Just go to https://svelte.dev/docs/svelte/$effect#$effect.tracking ](https://svelte.dev/playground/untitled?version=5.1.2#H4sIAAAAAAAAE3XP0QrCMAwF0F-JRXAD595rLfgdzodRUyl0bVgzQcb-3VYFQfExl5tDMgvrPCYhT7MI_YBCiiOR2Aq-UxnSDT1jnlOcRlMSlczoiHUXOjYxpOhx5-O12rgAJg4UAwaGhDyR3Gxhjdai4V1v2N2wqus9tC3Y3ifMQjbehaqq4aBhLtEv_Or893icCsdLve-Caj8nBkU67zMO5HtGCfM3sKiWNKhV0zwVaBqd3x3ixVmHFyFLuJyXB-moOe8pAQAA)

Logs

No response

System Info

Documentation

Severity

annoyance

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