Global Stores Are Dangerous @Huntabyte
Global Stores Are Dangerous  @Huntabyte
Uploaded December 2023 | Updated November 2026, 18 hours ago
The idea of exported global state (stores or $state objects) from a module may be fine if you're running a SPA, but as soon as Server Side Rendering (SSR) is introduced by a meta-framework like SvelteKit, this is a major foot gun.

In this video, we'll discuss why a global module state is problematic when combined with SSR and how we can _safely_ implement a global app state that isn't too burdensome to use!

πŸ”— GitHub Discussion: github.com/sveltejs/kit/discussions/4339
πŸ“œ SvelteKit State Management Docs: https://kit.svelte.dev/docs/state-management

πŸš€ Modern SaaS Course: hbyt.us/modern-saas
πŸ’¬ Discord: hbyt.us/discord
🐦 X/Twitter: hbyt.us/twitter
πŸ–₯️ Setup Stuff: hbyt.us/gear


πŸ“ƒ Topics Covered:
- SvelteKit v2
- Sveltekit 2
- Svelte 5 global state
- Svelte 5 reactivity
- Svelte 5 stores
- Svelte 5 class state
- Svelte 5 global reactivity
- Svelte 5 tutorial
- Svelte stores SSR
- Svelte SSR security
- Svelte store security
- Svelte security tips
- Svelte 5 reactive classes
- Svelte 5 features
- Svelte Context API
- Svelte 5 Context
Global Stores Are DangerousLive Coding - Finishing project page & Initial DeploymentPagination with SvelteKitLive Code & Chill - Job Board AppCode & Chill / Maybe Build SomethingPorting Vaul to SvelteLive Coding - Project Discovery Platform (SvelteKit & PocketBase) #2Live Coding - Project Discovery Platform (SvelteKit & PocketBase) #7Live Coding - Project Discovery Platform (SvelteKit & PocketBase) #9πŸ”΄ Working on the date picker/calendar for Melt UIProtect SvelteKit Routes with HooksLive Code & Chill - SvelteKit, Supabase, Prisma, & SkeletonUI
Huntabyte |

Global Stores Are Dangerous

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER