@ysaurnofsilraev/state-manager
v0.2.2
Published
Lightweight custom state manager with key-based subscriptions and a React bridge.
Readme
@ysaurnofsilraev/state-manager
Lightweight custom state manager with key-based subscriptions and a React bridge.
Features
- Minimal core API (
createEngine) - Key-based subscriptions (
subscribe(key, listener)) - Global subscription (
subscribeTotal) - Key and total updates (
setValue/updateValue,setTotalValue/updateTotalValue) - React integration via
useSyncExternalStore
Installation
npm i @ysaurnofsilraev/state-manager