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