Dmitry Shmatok
Dmitry Shmatok
Today I ran into the same problem when I wanted to `dispatch` [initiate action for my API endpoint from `redux-toolkit/rtk-query` library](https://redux-toolkit.js.org/rtk-query/api/created-api/endpoints#initiate).  @reduxjs/toolkit: 1.8.2 react-redux: 8.0.2
> How are you dispatching it? If you're using `useDispatch` make sure you're using [a typed hook](https://redux-toolkit.js.org/tutorials/typescript#define-typed-hooks). @Methuselah96 Yes, I am using typed `useAppDispatch` hook in custom hook: ```javascript export...
> @sevgeek : can you show your actual store setup code, preferably as a CodeSandbox or Github repo? @markerikson Yes, sure. I use for configure store very simple reducer, my...
@markerikson I transferred the pluggable middlewares from `.prepend([])` to `.concat(middleware1, middleware2, ...)` or `.concat([middleware1, middleware2, ...])` and the type error disappeared. Thank you very much for your help! 👍🏻