Skip to content

Interface: StateProviderProps

API / @xmachines/play-vue / StateProviderProps

Defined in: @json-render/vue

Props for StateProvider

Properties

PropertyTypeDescriptionDefined in
initialState?StateModelInitial state model (used only in uncontrolled mode)-
onStateChange?(changes) => voidCallback when state changes (used only in uncontrolled mode). Called once per set or update with all changed entries.-
store?StateStoreExternal store that owns the state. When provided, the provider operates in controlled modeinitialState and onStateChange are ignored and the store is the single source of truth.-