Skip to content

Commit 82419ce

Browse files
authored
[fix] call onDestroy in SSR (#6677)
Via #6416, lifecycle hooks became noops for SvelteKit. But onDestroy is said to be called suring SSR according to the docs. Fixes #6676
1 parent edf8844 commit 82419ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/ssr.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export {
2+
onDestroy,
23
setContext,
34
getContext,
45
getAllContexts,
@@ -10,6 +11,5 @@ export {
1011
} from './index';
1112

1213
export function onMount() {}
13-
export function onDestroy() {}
1414
export function beforeUpdate() {}
1515
export function afterUpdate() {}

0 commit comments

Comments
 (0)