diff --git a/docs/tut/crash-course/14-concepts.md b/docs/tut/crash-course/14-concepts.md index 0b9dc0c..24ca703 100644 --- a/docs/tut/crash-course/14-concepts.md +++ b/docs/tut/crash-course/14-concepts.md @@ -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 diff --git a/docs/tut/crash-course/9-derived-source.md b/docs/tut/crash-course/9-derived-source.md index ffcdaa9..12a89b2 100644 --- a/docs/tut/crash-course/9-derived-source.md +++ b/docs/tut/crash-course/9-derived-source.md @@ -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()`.