sveltejs / svelte

web development for the rest of us
https://svelte.dev
MIT License
79.7k stars 4.23k forks source link

Documentation error on $effect.tracking #13925

Closed entrenadorhispano closed 1 week ago

entrenadorhispano commented 1 week ago

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

Conduitry commented 1 week ago

Duplicate of #13902 - fix will be visible on the site soon.

Conduitry commented 1 week ago

And the second part is a duplicate of #13903.