Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/docs/02-runes/04-$effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The `$effect.tracking` rune is an advanced feature that tells you whether or not
});
</script>

<p>in template: {$effect.tracking()}</p> <!-- true -->
<p>in template: {$effect.tracking()}</p> <!-- false -->
```

This allows you to (for example) add things like subscriptions without causing memory leaks, by putting them in child effects. Here's a `readable` function that listens to changes from a callback function as long as it's inside a tracking context:
Expand Down