onExit

Defines an action to be performed after a transition has changed the state

Parameters

action

The action will be invoked when exiting a state.