Typedef
Static Public Summary | ||
public |
Creates an object consumable by Redux |
|
public |
A function that defines a namespace for creating slices |
|
public |
An object containing base type, subtypes, and a payload creator |
Static Public
public ActionFactory: ActionFactory: function source
A function that defines a namespace for creating slices
public ActionSlice: object source
An object containing base type, subtypes, and a payload creator
Example:
{
BASE_TYPE: "TODO/ADD",
REQUEST: "TODO/ADD/REQUEST",
SUCCESS: "TODO/ADD/SUCCESS",
FAILURE: "TODO/ADD/FAILURE"
requestPayloadCreator: ({ text, title, listId: list_id }) => ({ text, title, list_id})
}