-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsveltekit_shim_app_navigation.ts
More file actions
24 lines (22 loc) · 1.01 KB
/
sveltekit_shim_app_navigation.ts
File metadata and controls
24 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// shim for $app/navigation
// @see https://github.com/sveltejs/kit/issues/1485
// @see https://svelte.dev/docs/kit/$app-navigation
import type {
afterNavigate as base_afterNavigate,
beforeNavigate as base_beforeNavigate,
disableScrollHandling as base_disableScrollHandling,
goto as base_goto,
invalidate as base_invalidate,
invalidateAll as base_invalidateAll,
preloadCode as base_preloadCode,
preloadData as base_preloadData,
} from '$app/navigation';
import {noop, noop_async} from '@fuzdev/fuz_util/function.js';
export const afterNavigate: typeof base_afterNavigate = noop;
export const beforeNavigate: typeof base_beforeNavigate = noop;
export const disableScrollHandling: typeof base_disableScrollHandling = noop;
export const goto: typeof base_goto = noop_async;
export const invalidate: typeof base_invalidate = noop_async;
export const invalidateAll: typeof base_invalidateAll = noop_async;
export const preloadCode: typeof base_preloadCode = noop_async;
export const preloadData: typeof base_preloadData = noop_async;