-
Notifications
You must be signed in to change notification settings - Fork 40
Description
In react-redux v6 passing the store directly as a prop to a connected component was removed.
When I try to use liform with "react-redux": "^6.0.0" I get the following error:
Uncaught Error: Could not find "store" in either the context or props of "Connect(Form(BaseForm))". Either wrap the root component in a , or explicitly pass "store" as a prop to "Connect(Form(BaseForm))"
I used https://github.com/Limenius/symfony-react-sandbox to test this. The error appears after changing react libraries to more recent versions and running yarn upgrade.
This is what I used in package json:
"dependencies": {
"bootstrap-sass": "^3.3.7",
"classnames": "^2.2.6",
"jquery": "^3.3.1",
"js-yaml": "^3.12.0",
"jwt-decode": "^2.2.0",
"liform-react": "^0.9.0",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-helmet": "^5.2.0",
"react-on-rails": "^11.2.1",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"redux": "^4.0.1",
"redux-form": "^8.1.0",
"redux-thunk": "^2.3.0"
},