You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to match an action in a middleware, I get this Typescript error: Argument of type 'unknown' is not assignable to parameter of type 'Action<string>'. typescript(2345)
fyi we're now planning to move the isAction call inside .match so you won't have to do this yourself (#3897) - we're also gonna move isAction to the core package (reduxjs/redux#4620) and re-export it from RTK, since it's likely useful for people using handwritten redux patterns too
When trying to match an action in a middleware, I get this Typescript error:
Argument of type 'unknown' is not assignable to parameter of type 'Action<string>'. typescript(2345)
Version:
@redux/toolkit@2.0.0-rc.0
Codesandbox link: https://codesandbox.io/p/sandbox/kind-fog-7nxp6k?file=%2Fshared%2Fcounter.middleware.ts%3A5%2C31-5%2C37
The text was updated successfully, but these errors were encountered: