Module: Models/actions

Actions functions

Common functions that will be available on all actions

Source:

Methods

(inner) performAction(id, parameters) → {Mixed}

Perform an action Since actions are functions that interact with the universe they need two major references :

  • The State: which will allow them to interact with it
  • Other actions: so that actions composition can be possible To keep a clean, evolvable API, it is a best practice to communicate with objects (so they can be destructured at call and return).
Parameters:
Name Type Description
id String

Action name

parameters Object

Action Parameters

Source:
Returns:

Action result

Type
Mixed