Skip to content

Commit 1d3731f

Browse files
committed
update
1 parent a3707f4 commit 1d3731f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/02-navigating-state/+assets/app-b/src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
about
1313
</a>
1414

15-
{#if navigating.current}
16-
navigating to {navigating.current.to.url.pathname}
15+
{#if navigating.to}
16+
navigating to {navigating.to.url.pathname}
1717
{/if}
1818
</nav>
1919

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/02-navigating-state/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: navigating
33
---
44

5-
The `navigating` object represents the current navigation. When a navigation starts — because of a link click, or a back/forward navigation, or a programmatic `goto` — the value of `navigating.current` will become an object with the following properties:
5+
The `navigating` object represents the current navigation. When a navigation starts — because of a link click, or a back/forward navigation, or a programmatic `goto` — the value of `navigating` will become an object with the following properties:
66

77
- `from` and `to` — objects with `params`, `route` and `url` properties
88
- `type` — the type of navigation, e.g. `link`, `popstate` or `goto`
@@ -28,8 +28,8 @@ It can be used to show a loading indicator for long-running navigations. In this
2828
about
2929
</a>
3030
31-
+++ {#if navigating.current}
32-
navigating to {navigating.current.to.url.pathname}
31+
+++ {#if navigating.to}
32+
navigating to {navigating.to.url.pathname}
3333
{/if}+++
3434
</nav>
3535

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/03-updated-state/+assets/app-a/src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
about
1313
</a>
1414

15-
{#if navigating.current}
16-
navigating to {navigating.current.to.url.pathname}
15+
{#if navigating.to}
16+
navigating to {navigating.to.url.pathname}
1717
{/if}
1818
</nav>
1919

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/03-updated-state/+assets/app-b/src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
about
1313
</a>
1414

15-
{#if navigating.current}
16-
navigating to {navigating.current.to.url.pathname}
15+
{#if navigating.to}
16+
navigating to {navigating.to.url.pathname}
1717
{/if}
1818
</nav>
1919

0 commit comments

Comments
 (0)