Closed
Description
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
- React: 18
- ReactDOM: 18
- Redux: 4.2
- React Redux: 7 or 8
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?
- Yes
Metadata
Metadata
Assignees
Labels
No labels