Skip to content

Commit 27a8243

Browse files
committed
save a few bytes
1 parent 8b36c85 commit 27a8243

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ export function parse({ nodes, server_loads, dictionary, matchers }) {
6565
export function parse_server_route({ nodes, id, leaf, layouts, errors }, app_nodes) {
6666
return {
6767
id,
68-
exec: () => {
69-
throw new Error('shouldnt be called');
70-
},
68+
exec: () => ({}), // dummy function; exec already happened on the server
7169
// By writing to app_nodes only when a loader at that index is not already defined,
7270
// we ensure that loaders have referential equality when they load the same node.
7371
// Code elsewhere in client.js relies on this referential equality to determine

0 commit comments

Comments
 (0)