forked from enviPath/enviPy
Current Dev State
This commit is contained in:
14
static/js/ketcher2/node_modules/redux-thunk/src/index.js
generated
vendored
Normal file
14
static/js/ketcher2/node_modules/redux-thunk/src/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
function createThunkMiddleware(extraArgument) {
|
||||
return ({ dispatch, getState }) => next => action => {
|
||||
if (typeof action === 'function') {
|
||||
return action(dispatch, getState, extraArgument);
|
||||
}
|
||||
|
||||
return next(action);
|
||||
};
|
||||
}
|
||||
|
||||
const thunk = createThunkMiddleware();
|
||||
thunk.withExtraArgument = createThunkMiddleware;
|
||||
|
||||
export default thunk;
|
||||
Reference in New Issue
Block a user