Fix typos

This commit is contained in:
aaron 2024-10-06 18:12:25 +01:00
parent 82eec61c45
commit c4e1396684
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ Stores a single value that can be updated.
Created with `source()`.
# Derived Source
## Derived Source
A new source composed of other sources.
@ -46,7 +46,7 @@ Created by:
Reactive scopes do track sources and will rerun when those sources update.
New reactive scopes cannot be created within a reactive scope, but stable scopes
Reactive scopes cannot be created within a reactive scope, but stable scopes
can.
## Scope Owners

View file

@ -32,7 +32,7 @@ end
effect(function() text() end)
effect(function() text() end)
source(1) -- prints "ran" x2
count(1) -- prints "ran" x2
```
To avoid this, you can use `derive()` to derive a new source instead. This will
@ -54,7 +54,7 @@ end)
effect(function() text() end)
effect(function() text() end)
source(1) -- prints "ran" x1
count(1) -- prints "ran" x1
```
`derive()` must also be called within a stable scope, just like `effect()`.