onExit

Defines an action to be performed after the currentState was changed.

Parameters

action

The action will be performed when leaving any state.