Skip to content

Commit e65bf2e

Browse files
committed
Broken link Svelte Store Contract
1 parent 57a4ed4 commit e65bf2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Tutorial/Svelte.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Write a simple component that just renders all friends in the database.
165165

166166
Notice two things here:
167167

168-
1. liveQuery() returns a reactive Svelte Store (or actually an Observable that happens to comply with the [The Svelte Store Contract](https://svelte.dev/docs#Store_contract)). To access the reactive value of a Svelte Store, friends needs to be prefixed with $, `$friends`.
168+
1. liveQuery() returns a reactive Svelte Store (or actually an Observable that happens to comply with the [The Svelte Store Contract](https://svelte.dev/docs#component-format-script-4-prefix-stores-with-$-to-access-their-values)). To access the reactive value of a Svelte Store, friends needs to be prefixed with $, `$friends`.
169169
2. The result will be undefined momentarily before the very initial result arrives - which explains why we need the `{#if $friends}` condition.
170170

171171
### Using Sveltekit?

0 commit comments

Comments
 (0)