From 82419ce693ba9127f262eb7b3a5d01543f6f52b1 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 24 Aug 2021 15:03:13 +0200 Subject: [PATCH] [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 --- src/runtime/ssr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/ssr.ts b/src/runtime/ssr.ts index 69fe841e5c..cbac1f3ef8 100644 --- a/src/runtime/ssr.ts +++ b/src/runtime/ssr.ts @@ -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() {}