MiddlewareArray.prepend/concat
methods don't handle array arguments correctly
#2432
Labels
MiddlewareArray.prepend/concat
methods don't handle array arguments correctly
#2432
Per example at reduxjs/redux-thunk#333 (comment) and https://codesandbox.io/s/react-redux-toolkit-wbzkgc?file=/src/store/index.ts , it looks like
gDM().prepend([someMiddleware])
doesn't handle type extraction right and the store falls back toDispatch<AnyAction>
:I suppose we either ought to reject arrays entirely at runtime, or modify the types to deal with that.
The text was updated successfully, but these errors were encountered: