Replies: 2 comments 9 replies
-
Any chance you could get a reliable reproduction of this in either Typescript Playground or CodeSandbox (or a Github repo)? I've seen this crop up a couple of times, but not reliably enough to work out what's causing it. |
Beta Was this translation helpful? Give feedback.
-
Ended up discovering that our codebase has a library @markerikson @EskiMojo14 thanks again for helping out. Just wanted to document my findings in case anyone else runs into something similar. |
Beta Was this translation helpful? Give feedback.
-
I'm in the process of upgrading our codebase to RTK v2.0 and running into an Typescript error when I try to pass my thunk into a dispatch method. Looks like dispatch only accepts
UnknownAction
. Is there a different way to implement thunks now?See the comments at the bottom for the error I'm getting:
Edit: Here's a StackBlitz example: https://stackblitz.com/edit/react-ts-hmoqp3?file=App.tsx
Beta Was this translation helpful? Give feedback.
All reactions