From 0a610c8f56b4a6b8fb88d04110033f231464c852 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 23 Jul 2024 10:58:38 +0100 Subject: [PATCH] docs --- .../routes/docs/content/01-api/02-runes.md | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md b/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md index 76007ae96c..52f1712c30 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md +++ b/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md @@ -66,7 +66,27 @@ In non-runes mode, a `let` declaration is treated as reactive state if it is upd ## `$state.link` -TODO +State declared with `$state.link` behaves like `$state`, with the key difference being that rather than take an initial value, the value passed into `$state.link` maintains and persistant one-way link. Updating the `$state.link` directly will temporarily override the value until the linked state next updates. + +```svelte + +``` ## `$state.frozen`