StateDef
the class StateDef holds the definition of a state, that can be passed to Conan.state
Params
name
Type: string
required
the name we want to use for this state
initialData
Type: AsapLike<DATA>
required
the initial data we want to have when the state is created
reducers
Type: ReducersFn<DATA, REDUCERS>
optional
the reducers that will act on this state
actions
Type: ActionsFn<DATA, REDUCERS, IPartial<ACTIONS>>
optional
the actions that will act on this state
autoBind
Type: any
optional
any object with logic we want to auto bind with this state
pipelineListener
Type: IConsumer<FlowEvent>
optional
TBC: Que mierdas es esto Alberto?
cancelAutoStart
Type: boolean
optional
true if we want to cancel the auto start of the state
reactions
Type: RUserReactionsDef<{ nextData: DATA }, 'nextData', { nextData: ACTIONS & REDUCERS }>
optional
TBC: Que mierdas es esto Alberto?
nature
Type: FlowEventNature
optional
TBC: Que mierdas es esto Alberto?
Last updated