[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
pull/6680/head
Simon H 4 years ago committed by GitHub
parent edf8844ae6
commit 82419ce693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
export {
onDestroy,
setContext,
getContext,
getAllContexts,
@ -10,6 +11,5 @@ export {
} from './index';
export function onMount() {}
export function onDestroy() {}
export function beforeUpdate() {}
export function afterUpdate() {}

Loading…
Cancel
Save