We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using connect from react-redux with reduxForm HOC throws an error
react-redux
reduxForm
redux-form
redux
react
react-dom
Not sure why the component breaks when I use it like this
export default reduxForm({ validate enableReinitialize: true, })(connect(mapStateToProps, mapDispatchToProps)(Form));
However, doing this does work, but the Form component does not get access to any of the mapStateToProps and mapDispatchToProps values
Form
mapStateToProps
mapDispatchToProps
export default connect( mapStateToProps, mapDispatchToProps, )( reduxForm({ validate, enableReinitialize: true })(Form), );
A reproducible demo: https://codesandbox.io/s/redux-form-simple-example-6hd1g?file=/index.js
The component should render without crashing the app
Here is the error that I get
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Subject of the issue
Using connect from
react-redux
withreduxForm
HOC throws an errorYour environment
redux-form
redux
react-redux
react
react-dom
Steps to reproduce
Not sure why the component breaks when I use it like this
However, doing this does work, but the
Form
component does not get access to any of themapStateToProps
andmapDispatchToProps
valuesA reproducible demo: https://codesandbox.io/s/redux-form-simple-example-6hd1g?file=/index.js
Expected behaviour
The component should render without crashing the app
Actual behaviour
Here is the error that I get
The text was updated successfully, but these errors were encountered: