async-connect
Version:
HOC for calling and statusing redux actions on componentDidMount
16 lines (12 loc) • 547 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _actionTypes = require('../actionTypes');
exports.default = function (type, payload) {
return {
type: _actionTypes.STATUS,
payload: _extends({ type: type, status: 'pending' }, payload)
};
};