-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Impossible to create a lib compatible with version 7 and 8 #1914
Comments
Hmm. My first answer here is that you shouldn't have to be passing in Oh, wait... you're saying it's not your lib, it's in someone else's lib: sigh That's... silly. Yeah, changing this to be a one-time-only warning seems reasonable (similar to how React internally tracks "have we shown this warning once?"): Afraid this isn't my highest priority atm, but if someone would like to submit a PR we can put that in. |
The problem is react-beautifull-dnd is unmaintained since 1 year but still really used. This one is blocking our migration to react 18 / react-redux 8. More the error is only thrown in dev mode. So it can be good to only warn not ? |
@paztis there's a fork of |
Thanks ! Will look at it |
Just published https://github.com/reduxjs/react-redux/releases/tag/v8.0.2 , which should fix this. |
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
What is the current behavior?
When we want to create a lib with a peer dependency to react-redux we face a problem.
People that use react 18 will provide react-redux 8. People that work with react 17 will provide react-redux 7.
The lib is doing basic things, but it uses the connect with pure option to true.
In v8, pure option is no more necessary but it throws an error to say the option is not necessary.
This exception makes the full app crash.
It is not possible to remove the option to let v7 correctly works.
We have this case in an unmaintained lib react-beautifull-dnd that blocks the migration of apps to react 18.
What is the expected behavior?
A console warning can be displayed but not a blocking error, mostly if this parameter is not used at all.
Which browser and OS are affected by this issue?
All
Did this work in previous versions of React Redux?
The text was updated successfully, but these errors were encountered: