Permalink
6104245 Nov 19, 2017
1 contributor

Users who have contributed to this file

14 lines (10 sloc) 487 Bytes

Type Suffix Configuration

In the case you need to use different type suffixes, you can configure this globally for all actions or locally (action-by-action).

To change suffixes, you can supply an optional configuration object to the middleware. This object accepts an array of suffix strings that can be used instead of the default with a key of promiseTypeSuffixes.

applyMiddleware(
  promiseMiddleware({
    promiseTypeSuffixes: ['LOADING', 'SUCCESS', 'ERROR']
  })
)