reduxjs / redux

A JS library for predictable global state management
https://redux.js.org
MIT License
60.51k stars 15.26k forks source link

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

Closed seafronthu closed 1 month ago

seafronthu commented 1 month ago

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.

EskiMojo14 commented 1 month ago

duplicate of https://github.com/reduxjs/redux-toolkit/issues/4299, please don't open the same issue in multiple repos