10 lines
240 B
JavaScript
10 lines
240 B
JavaScript
|
export default store => next => action => {
|
||
|
if (action.meta &&
|
||
|
action.meta.callback &&
|
||
|
action.type.endsWith('SUCCESS') &&
|
||
|
typeof action.meta.callback === 'function') {
|
||
|
action.meta.callback();
|
||
|
}
|
||
|
return next(action);
|
||
|
};
|