Skip to content

Commit 80138fd

Browse files
committed
missed these
1 parent 99cacda commit 80138fd

File tree

2 files changed

+9
-5
lines changed
  • apps/svelte.dev/content/tutorial/03-sveltekit/08-stores

2 files changed

+9
-5
lines changed

apps/svelte.dev/content/tutorial/03-sveltekit/08-stores/01-page-store/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ As with any other store, you can reference its value in a component by prefixing
1818

1919
```svelte
2020
/// file: src/routes/+layout.svelte
21-
+++<script>
22-
import { page } from '$app/stores';
23-
</script>+++
21+
<script>
22+
+++import { page } from '$app/stores';+++
23+
24+
let { children } = $props();
25+
</script>
2426
2527
<nav>
2628
<a href="/" +++aria-current={$page.url.pathname === '/'}+++>
@@ -32,5 +34,5 @@ As with any other store, you can reference its value in a component by prefixing
3234
</a>
3335
</nav>
3436
35-
<slot></slot>
37+
{@render children()}
3638
```

apps/svelte.dev/content/tutorial/03-sveltekit/08-stores/02-navigating-store/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ It can be used to show a loading indicator for long-running navigations. In this
1515
/// file: src/routes/+layout.svelte
1616
<script>
1717
import { page, +++navigating+++ } from '$app/stores';
18+
19+
let { children } = $props();
1820
</script>
1921
2022
<nav>
@@ -31,5 +33,5 @@ It can be used to show a loading indicator for long-running navigations. In this
3133
{/if}+++
3234
</nav>
3335
34-
<slot></slot>
36+
{@render children()}
3537
```

0 commit comments

Comments
 (0)