Svelte · Senior · Question 9 of 75
What does $effect.tracking() return?
- ✓Correct answer: Whether the code is running in a tracking context (an effect or template), useful for libraries that set up subscriptions lazily
- 2The list of dependencies
- 3Whether SSR is active
Explanation
Reading a value outside tracking context can't subscribe, so a library may return a snapshot instead.