-
Notifications
You must be signed in to change notification settings - Fork 2
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
Type error with getDefaultMiddleware()
#3
Comments
Having dug into this a little further, I think the issue is that we're using a newer version of redux than this package. I have the same problem with https://github.com/tomekkleszcz/redux-saga-promise-actions. I think the issue is caused by the change from this in version 4.2.1: https://github.com/tomekkleszcz/redux-saga-promise-actions#readme To this in version 5.0.1: |
Further update, if anybody else lands here with this problem, I think I managed to find a solution for pnpm by setting an override in
|
This is called a breaking change and they are herbely permitted to do that when jumping from 4.* to 5.*. Did you just asked me to update my library? :O I will probably update in the weekend. Thanks for bringing this up. |
Firstly, thanks for this library, it's great to see another option to use promises with sagas.
I'm stuck on a typing problem using
getDefaultMiddleware()
from redux-toolkit. This is my attempt to add the promise middleware to my store:But I get the following error:
Do you know how I could use this middleware with redux toolkit's
configureStore()
?The text was updated successfully, but these errors were encountered: