Skip to content

Commit 3be38e4

Browse files
committed
fix
1 parent 0bc5cd8 commit 3be38e4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,8 +1280,6 @@ async function get_navigation_intent(url, invalidating) {
12801280
const intent = {
12811281
id,
12821282
invalidating,
1283-
// route.exec is missing but it's not used anywhere except route matching,
1284-
// which happened on the server in this case, so it's fine
12851283
route: parse_server_route(route, app.nodes),
12861284
params,
12871285
url
@@ -2516,6 +2514,8 @@ async function _hydrate(
25162514
if (route) {
25172515
// @ts-expect-error route is the full object in case of server routing
25182516
parsed_route = parse_server_route(route, app.nodes);
2517+
} else {
2518+
route = { id: null };
25192519
}
25202520
} else if (!__SVELTEKIT_EMBEDDED__) {
25212521
// See https://github.com/sveltejs/kit/pull/4935#issuecomment-1328093358 for one motivation
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
declare module '__SERVER__/internal.js' {
22
export const options: import('types').SSROptions;
33
export const get_hooks: () => Promise<Partial<import('types').ServerHooks>>;
4-
export const dictionary: Record<string, import('types').CSRRoute>;
54
}

0 commit comments

Comments
 (0)