Skip to content

Commit 68718e3

Browse files
Sync kit docs (#1017)
sync kit docs Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
1 parent a39bd44 commit 68718e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/50-state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Instead, we need to make the value [_reactive_](/tutorial/svelte/state):
154154
/** @type {{ data: import('./$types').PageData }} */
155155
let { data } = $props();
156156
157-
+++ let wordCount = $state(data.content.split(' ').length);
157+
+++ let wordCount = $derived(data.content.split(' ').length);
158158
let estimatedReadingTime = $derived(wordCount / 250);+++
159159
</script>
160160
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy