onAction

Checks against available actions and creates side-effects accordingly.

Parameters

action

The action to process.