reduxjs / redux

A JS library for predictable global state management

Home Page:https://redux.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argument of type 'AsyncThunkAction<{ id: number; }, void, AsyncThunkConfig>' is not assignable to parameter of type 'UnknownAction'.

seafronthu opened this issue · comments

image
I made a demo, it does not work after defining the typed hooks, And the vscode has the same issue, So It's not a bug with stackblitz's typescript server.

"react-redux": "^9.1.0"
"@reduxjs/toolkit": "^2.2.2"
"@types/react": "^18.2.47"
"@types/react-dom": "^18.2.18"
"typescript": "^5.4.3"
I don't know what caused it, it's too uncomfortable.

duplicate of reduxjs/redux-toolkit#4299, please don't open the same issue in multiple repos