onEntry

Defines an action to be performed before transition causes a change in state

Parameters

action

The action will be performed when entering a new state