Skip to content

Commit a9c85b0

Browse files
authored
Apply suggestions from code review
1 parent fc11907 commit a9c85b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/kit/src/core/sync/write_client_manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function write_client_manifest(kit, manifest_data, output, metadata) {
153153
}(({ error }) => { console.error(error) }),
154154
${client_hooks_file ? 'init: client_hooks.init,' : ''}
155155
156-
reroute: ${universal_hooks_file ? 'universal_hooks.reroute || ' : ''}(() => {}),
156+
reroute: ${universal_hooks_file ? 'universal_hooks.reroute || ' : ''}(() => {})
157157
};
158158
159159
export { default as root } from '../root.${isSvelte5Plus() ? 'js' : 'svelte'}';

packages/kit/src/runtime/server/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export class Server {
6666
set_read_implementation(read);
6767
}
6868

69+
// During DEV and for some adapters this function might be called in quick succession,
70+
// so we need to make sure we're not invoking this logic (most notably the init hook) multiple times
6971
await (init_promise ??= (async () => {
7072
try {
7173
const module = await get_hooks();

0 commit comments

Comments
 (0)