ConanFlow
Last updated
Last updated
The class ConanFlow contains the following methods:
this method allows connecting a Conan state with a React component, using a mapper function to describe the mapping
this method allows connecting a Conan state with a React component, using a mapper function to describe the mapping
this method creates a ConanState with the state of each status
this method creates a ConanState with the state of the status passed as input
Input
statusName
Type: STATUS
required
the STATUS we want to hook into
Returns
StatusDef<USER_STATUSES, STATUS>
The StatusDef object allows to add reactions, invoke transitions, steps and obtain the last ConanState Data
Input
initialStatus
Type: StatusLike<USER_STATUSES>
optional
optional initial STATUS to start the flow with
Returns
ConanFlow
this ConanFlow
Returns
ConanState<Status>
contains the states for all the statuses
Input
status
Type: STATUS
required
the STATUS we want to obtain the ConanState for
Returns
ConanState<USER_STATUSES[STATUS]>
ConanState for the status passed