Skip to content

Commit

Permalink
[fix] call onDestroy in SSR
Browse files Browse the repository at this point in the history
Via #6416, lifecycle hooks became noops for SvelteKit. But onDestroy is said to be called suring SSR according to the docs.

Fixes #6676
  • Loading branch information
dummdidumm authored Aug 24, 2021
1 parent edf8844 commit c127df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/ssr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export {
onDestroy,
setContext,
getContext,
getAllContexts,
Expand All @@ -10,6 +11,5 @@ export {
} from './index';

export function onMount() {}
export function onDestroy() {}
export function beforeUpdate() {}
export function afterUpdate() {}

0 comments on commit c127df7

Please sign in to comment.