Skip to content

Commit 757dc29

Browse files
committed
update doc
1 parent 5df23d0 commit 757dc29

File tree

1 file changed

+2
-2
lines changed
  • sites/svelte-5-preview/src/routes/docs/content/01-api

1 file changed

+2
-2
lines changed

sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ nested effects that you want to manually control. This rune also allows for crea
207207
</script>
208208
```
209209

210-
The `$effect.root` can be used from anywhere, but if it's used nested within another active effect (such as during component initialisation)
211-
then it might be desirable to know when that active effect gets disposed and cleaned up. `$effect.root` takes an optional second arugment,
210+
If the `$effect.root` was created within within another active effect (such as during component initialisation) then it might
211+
be desirable to know when that active effect gets disposed and cleaned up. `$effect.root` takes an optional second arugment,
212212
which is a function callback for when this happens in case. This allows you to cleanup the effect root too if needed.
213213

214214
```svelte

0 commit comments

Comments
 (0)