Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "middleware/index"

Index

Functions

Functions

Const apiMiddleware

  • apiMiddleware(store?: Object): (Anonymous function)
  • A middleware that handles server requests, processing and changing actions according to the keys in its payload and sending them to the reducers. If the action has a payload with the keys of key or axiosRequestConfig, it will be proccessed as a RequestAction, where it calls a RESTful API and returns either a DataAction if it successfully resolves the network request, or a ErrorAction if the network request fails.

    Parameters

    • Default value store: Object = {}

      the Redux Store that hooks into the middleware.

    Returns (Anonymous function)

Generated using TypeDoc