MCPcopy
hub / github.com/reduxjs/redux / multiArgMiddleware

Function multiArgMiddleware

test/applyMiddleware.spec.ts:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 any,
137 MultiDispatch
138 > = _store => {
139 return next => (action: any, callArgs?: any) => {
140 if (Array.isArray(callArgs)) {
141 return action(...callArgs)
142 }
143 return next(action)
144 }
145 }
146
147 function dummyMiddleware({ dispatch }: MiddlewareAPI) {
148 return (_next: unknown) => (action: any) => dispatch(action, testCallArgs)

Callers

nothing calls this directly

Calls 1

nextFunction · 0.70

Tested by

no test coverage detected