This commit is contained in:
16
frontend/node_modules/redux-thunk/dist/redux-thunk.legacy-esm.js
generated
vendored
Normal file
16
frontend/node_modules/redux-thunk/dist/redux-thunk.legacy-esm.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// src/index.ts
|
||||
function createThunkMiddleware(extraArgument) {
|
||||
const middleware = ({ dispatch, getState }) => (next) => (action) => {
|
||||
if (typeof action === "function") {
|
||||
return action(dispatch, getState, extraArgument);
|
||||
}
|
||||
return next(action);
|
||||
};
|
||||
return middleware;
|
||||
}
|
||||
var thunk = createThunkMiddleware();
|
||||
var withExtraArgument = createThunkMiddleware;
|
||||
export {
|
||||
thunk,
|
||||
withExtraArgument
|
||||
};
|
||||
Reference in New Issue
Block a user