Crate leptos_state

Crate leptos_state 

Source
Expand description

§leptos-state v1.0.0 - Redesigned Architecture

This module contains the completely redesigned architecture that fixes the fundamental type system issues present in v0.2.x.

§Design Philosophy

  1. Trait-first design with proper bounds
  2. Feature flags that actually work independently and together
  3. Zero-cost abstractions where possible
  4. WASM-first but native-compatible
  5. Leptos v0.8+ integration from day one

Re-exports§

pub use v1::*;
pub use hooks::*;
pub use machine::*;

Modules§

hooks
Leptos integration hooks for stores and state machines
machine
State machine implementation inspired by XState
store
Store implementation inspired by Zustand
utils
Utility types and functions
v1
leptos-state v1.0.0 - Redesigned Architecture

Macros§

create_store
Macro for creating store implementations
property
Macro for creating properties
select_field
Macro for creating field selectors
test_case
Macro for creating test cases