From c127df7b859230afdc6ea957e2d9054fcabbd61e Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 24 Aug 2021 13:51:53 +0200 Subject: [PATCH] [fix] call onDestroy in SSR 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 69fe841e5c13..cbac1f3ef855 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() {}