-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Have to pass types explicitly in createAsyncThunk #2150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Correct. Per the instructions in the Frankly, a simpler option here is to just do Also, note that we're thinking about removing that |
We are also thinking about adding an api for type pinning though, which will allow you to declare that only once per app: #1986 (comment) |
- Added a unit test for [React-redux reduxjs#2150](reduxjs/react-redux#2150)
- Added a unit test for [React-redux reduxjs#2150](reduxjs/react-redux#2150)
Hi! I want to use createAsyncThunk in my project, but there is some problems:
There are some redux libraries there is possible to redefine global interfaces. For example, react-redux do like that:
This way is more convinient and can resolve these problems. I don't see any problems with that solution. In redux project is only one state.
In redux-toolkit I didn't find the same approach.
ThunkApi
depends ondeclare type AsyncThunkConfig
, which I cannot redefine.The text was updated successfully, but these errors were encountered: