In State Builder Block
Functions
Triggers every time the state machine enters this state. The passed Flow created by flowBuilder will be collected and any emission will be passed to handler.
An effect is a way to do some work without changing the state. A typical use case is to trigger navigation as some sort of side effect or triggering analytics or do logging.
Allows handling certain actions or events only while an extra condition is true
for the current state.
Triggers every time an action of type SubAction is dispatched while the state machine is in this state.
An effect is a way to do some work without changing the state. A typical use case would be trigger navigation as some sort of side effect or triggering analytics. This is the "effect counterpart" to handling actions that you would do with on.
Triggers every time the state machine enters this state. It only triggers again if the surrounding in<State>
condition is met and will only re-trigger if in<State>
condition returned false and then true again.
An effect is a way to do some work without changing the state. A typical use case is to trigger navigation as some sort of side effect or triggering analytics or do logging.
Anything inside this block will only run while the identity of the current state remains the same. The identity
is determined by the given function and uses equals for the comparison.