Skip to content

Commit 7be3ae3

Browse files
Sync kit docs (#1026)
sync kit docs Co-authored-by: Rich-Harris <[email protected]>
1 parent 45a18ab commit 7be3ae3

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

apps/svelte.dev/content/docs/kit/98-reference/20-$app-state.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@ import { navigating, page, updated } from '$app/state';
1717

1818
## navigating
1919

20-
An object with a reactive `current` property.
21-
When navigation starts, `current` is a `Navigation` object with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.
22-
When navigation finishes, `current` reverts to `null`.
23-
24-
On the server, this value can only be read during rendering. In the browser, it can be read at any time.
20+
An object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.
21+
Values are `null` when no navigation is occurring, or during server rendering.
2522

2623
<div class="ts-block">
2724

2825
```dts
29-
const navigating: {
30-
get current(): import('@sveltejs/kit').Navigation | null;
31-
};
26+
const navigating:
27+
| import('@sveltejs/kit').Navigation
28+
| {
29+
from: null;
30+
to: null;
31+
type: null;
32+
willUnload: null;
33+
delta: null;
34+
complete: null;
35+
};
3236
```
3337

3438
</div>

0 commit comments

Comments
 (0)