leptos-storev0.9.0
10 Interactive Examples

leptos-store

Enterprise-grade state management for Leptos

Core

Counter

Basic counter demonstrating store creation, state management, and reactive updates. The perfect starting point.

StoreRwSignalReactivity
Launch
Beginner
Advanced

Middleware

Action middleware for logging, timing, and validation. Intercept mutations before and after they execute.

MiddlewareLoggingTimingValidation
Launch
Intermediate
State

Persistence

Persist store state to localStorage or sessionStorage. Automatic save/load with versioning support.

LocalStorageSessionStorageVersioning
Launch
Intermediate
Advanced

Composition

Compose multiple stores together. Share state between stores and create complex state hierarchies.

Store CompositionShared StateComputed
Launch
Advanced
Integration

Feature Flags

Runtime feature flags with percentage rollouts, user targeting, and A/B testing capabilities.

Feature FlagsRolloutsA/B Testing
Launch
Intermediate
Advanced

DevTools

Built-in developer tools for inspecting store state, tracking events, and debugging state changes.

InspectorEvent LogState Diff
Launch
Beginner
Integration

Auth Store

Authentication state management with login/logout flows, session handling, and protected routes.

AuthenticationSessionsProtected Routes
Launch
Intermediate
Integration

Token Explorer

Cryptocurrency token explorer with real-time data, pagination, and advanced filtering.

API IntegrationPaginationFiltering
Launch
Advanced
Core

CSR Todo

Client-side rendered todo app. No SSR, no hydration — pure browser state management.

CSRstore! macroTodo Pattern
Launch
Beginner
State

Selectors

Fine-grained reactivity with create_selector, combine_selectors, map_selector, and filter_selector.

SelectorsMemoizationFine-grained Reactivity
Launch
Intermediate