Action

Action

This class represent a Action, it has a type used as unique identifier and a payload. By convention the type is a string in capital with underscores. For example, this is a valid type: A_VALID_TYPE_STRING

Constructor

new Action(type, payload)

Source:
Parameters:
Name Type Description
type String

A String that identify the type of the Action

payload Object

The data of the Action