What problem does it solve?
XState Store adapter for json-render's StateStore interface provides a drop-in bridge that connects json-render state management to a @xstate/store-backed atom, enabling unified, observable UI state across components.
Core Features & Use Cases
- XState-backed StateStore adapter: provides a drop-in StateStore that reads/writes to an @xstate/store atom.
- Bidirectional synchronization: keeps json-render UI state and XState state in sync via the atom.
- Easy integration with StateProvider: wrap your app to use the shared state backend across components.
- Use Case: integrate existing XState state machines with json-render UIs to reflect and mutate state without duplicating sources.
Quick Start
Create an @xstate/store atom, instantiate the adapter with xstateStoreStateStore, and wrap your app in StateProvider to enable json-render to read and write through the XState store.