API / @xmachines/play-react / StateProviderProps
Defined in: @json-render/react
Props for StateProvider
Properties
| Property | Type | Description | Defined in |
|---|
children | ReactNode | - | - |
initialState? | StateModel | Initial state model (used only in uncontrolled mode) | - |
onStateChange? | (changes) => void | Callback when state changes (used only in uncontrolled mode). Called once per set or update with all changed entries. | - |
store? | StateStore | External store that owns the state. When provided, the provider operates in controlled mode — initialState and onStateChange are ignored and the store is the single source of truth. | - |