Loading video player...
Learn how state really works in SvelteKit. In this video, we’ll fix a real bug in the Travel Journal app, break down where state should (and shouldn’t) live, and walk through server state, URL state, component state, and snapshots. By the end, you’ll know how to manage state the right way in a real SvelteKit project. Chapters: 00:00 Introduction to SvelteKit State Management 00:15 Fixing the Initial Bug 00:35 Handling State Changes in SvelteKit 03:54 Avoiding Shared State on the Server 09:12 Managing URL Search Parameters 10:37 Using Snapshots for Complex Forms 12:48 Conclusion and Final Thoughts Say hi / more • Newsletter & notes: https://thitemple.me • Bsky: https://bsky.app/profile/thitemple.me • X (Twitter): https://x.com/thi_temple