Skip to content Skip to content
Vladimir Chavkov

Svelte State Management & Stores Training

Master application state management in Svelte with this focused 2-day training. Learn to build predictable, maintainable state architectures using Svelte stores, the context API, and reactive patterns that scale from simple components to complex applications.

Duration2 days (16 hours)
LevelIntermediate
DeliveryIn-person, Live online, Hybrid
CertificationN/A
  • Svelte developers building applications with complex state
  • Frontend engineers designing state architectures
  • Teams migrating from Redux or MobX to Svelte stores
  • Developers building shared state across component trees

After completing this training, you’ll be able to:

  • Implement writable, readable, and derived stores for various use cases
  • Build custom stores with encapsulated business logic
  • Use the context API for scoped state management
  • Design reactive data flow patterns across component hierarchies
  • Integrate stores with SvelteKit load functions and server data
  • Test and debug state management patterns effectively

Module 1: Built-in Store Types

  • Writable stores: creation, set, update, subscribe
  • Readable stores for external data sources
  • Derived stores for computed values
  • The $ auto-subscription syntax
  • Hands-on: Build a real-time notification system

Module 2: Custom Store Patterns

  • Stores with custom methods and validation
  • Store factories for reusable patterns
  • Async stores for API integration
  • Persistent stores with localStorage and sessionStorage
  • Hands-on: Create a shopping cart store with persistence

Module 3: Context API

  • setContext and getContext for scoped state
  • Context vs stores: when to use each
  • Typed context with TypeScript
  • Nested context and provider patterns
  • Hands-on: Build a theme and configuration provider

Module 4: Reactive Data Patterns

  • Store composition and chaining
  • Event-driven store updates
  • Debouncing and throttling reactive updates
  • Store-based undo/redo patterns
  • Hands-on: Build a collaborative text editor state layer

Module 5: SvelteKit Integration

  • Stores in SvelteKit page and layout data
  • Server-to-client state hydration
  • URL-based state with $page store
  • Form state management with actions
  • Hands-on: Integrate stores with SvelteKit data loading

Module 6: Testing and Debugging

  • Unit testing stores in isolation
  • Testing components with store dependencies
  • Store debugging techniques and devtools
  • Performance profiling reactive chains
  • Hands-on: Write comprehensive store test suites
  • Svelte fundamentals (components, reactivity, template syntax)
  • Basic JavaScript/TypeScript knowledge
  • Understanding of component-based architecture
  • Familiarity with async patterns (Promises, async/await)
FormatDescription
In-PersonOn-site at your company’s location, hands-on with direct interaction
Live OnlineInteractive virtual sessions with screen sharing and real-time labs
HybridCombination of on-site and remote sessions, flexible scheduling

All formats include hands-on labs, course materials, pattern reference guides, and post-training support.