leptos/reactive_stores
2024-11-04 16:21:35 -05:00
..
src feat: impl Into<Field<T>> for Store<T> (closes #3102) 2024-10-28 20:28:09 -04:00
Cargo.toml chore: add Cargo.lock (closes #2881) (#3192) 2024-11-04 16:21:35 -05:00
Makefile.toml fix: improve CI workflow (#2838) 2024-09-20 08:08:28 -07:00
README.md chore: publish stores (#3110) 2024-10-14 10:18:38 -04:00

Stores

Stores are a data structure for nested reactivity.

The reactive_graph crate provides primitives for fine-grained reactivity via signals, memos, and effects.

This crate extends that reactivity to support reactive access to nested dested, without the need to create nested signals.

Using the #[derive(Store)] macro on a struct creates a series of getters that allow accessing each field. Individual fields can then be read as if they were signals. Changes to parents will notify their children, but changing one sibling field will
not notify any of the others, nor will it require diffing those sibling fields (unlike earlier solutions using memoized “slices”).

This is published for use with the Leptos framework but can be used in any scenario where reactive_graph is being used for reactivity.