From cd50fccdecd6e014b4ff5aa822f72be341ea6343 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Mon, 28 Oct 2024 20:34:30 -0400 Subject: [PATCH] docs: fix note about $derived --- documentation/docs/02-runes/03-$derived.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/02-runes/03-$derived.md b/documentation/docs/02-runes/03-$derived.md index 96cafeaaea..77ab07a0a9 100644 --- a/documentation/docs/02-runes/03-$derived.md +++ b/documentation/docs/02-runes/03-$derived.md @@ -21,7 +21,7 @@ The expression inside `$derived(...)` should be free of side-effects. Svelte wil As with `$state`, you can mark class fields as `$derived`. -> [!NOTE] Code in Svelte components is only executed once at creation, without the `$derived` rune `double` would maintain it's original value. +> [!NOTE] Code in Svelte components is only executed once at creation. Without the `$derived` rune, `doubled` would maintain its original value even when `count` changes. ## `$derived.by`