redux-easy-async
Version:
Redux Easy Async makes handling asynchronous actions, such as API requests, simple, reliable, and powerful
12 lines (10 loc) • 637 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var REDUX_EASY_ASYNC_NAMESPACE = exports.REDUX_EASY_ASYNC_NAMESPACE = 'REDUX_EASY_ASYNC_NAMESPACE';
var ERRORS = exports.ERRORS = {
ACTION_NOT_OBJECT: 'createAsyncAction(type, fn, options): fn must return an object',
MAKE_REQUEST_NOT_FUNCTION: 'createAsyncAction(type, fn, options): object returned by fn must have a makeRequest function',
CREATE_ASYNC_REDUCER_INVALID_TYPE: 'createAsyncReducer(types): invalid argument. "types" must be either a string or object OR an array of string or objects in the format that createAsyncConstants() returns.'
};