Dmitry Shmatok

Results 4 comments of 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). ![image](https://user-images.githubusercontent.com/60958933/174596289-30231abe-8d1f-4e9a-8995-e6287a8cced2.png) @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! 👍🏻