Skip to content

SvelteKit SSR Warning

Mahmoud Zino edited this page Feb 19, 2024 · 3 revisions

SSR Load Function Issues

Please aware that there are known issues when using Svelte stores with SSR. This is an issue that could affect the following features within Skeleton:

  • Drawers via drawerstore
  • Modals via modalStore
  • Toasts via toastStore

In order to prevent these issues, Skeleton now requires you to initialize the stores in your root layout using the following:

import { initializeStores } from '@skeletonlabs/skeleton';

initializeStores();

Additional Context

Please see this thread for more information.