-
-
Notifications
You must be signed in to change notification settings - Fork 317
SvelteKit SSR Warning
Mahmoud Zino edited this page Feb 19, 2024
·
3 revisions
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();