finish removing loading entities

This commit is contained in:
emizzle 2018-08-23 19:17:05 +10:00 committed by Iuri Matias
parent 91a311196f
commit a4c82e5e5d

View File

@ -1,13 +1,12 @@
export const REQUEST = 'REQUEST';
export const SUCCESS = 'SUCCESS';
export const FAILURE = 'FAILURE';
export const ENTITY = 'ENTITY';
function createRequestTypes(base) {
return [REQUEST, SUCCESS, FAILURE].reduce((acc, type) => {
acc[type] = `${base}_${type}`;
return acc;
}, { id: 0 });
}, {});
}
function action(type, payload = {}) {