Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ActionTypes

An enum contains the three values that are related to three standard types of actions that a Redux application typically handles during a network request. These actions (REQUEST,DATA, andERROR`) relate respectively to the loading stage, the success call of an API endpoint, and an unsuccessful call of an API endpoint.

Index

Enumeration members

Enumeration members

DATA

DATA: = "DATA"

the standard action type that is dispatched to the reducers to set to an object in the Redux store to a payload received as a result of a successful network request.

ERROR

ERROR: = "ERROR"

the standard action type that is dispatched to the reducers to set to an object in the Redux store to an error message received as a result of a failed network request.

REQUEST

REQUEST: = "REQUEST"

the standard action type that is dispatched to the Redux store to set the application in a loading state when network request that is in process.

Generated using TypeDoc