WithRedux has to be used only for top level pages, all other components has to be wrapped in connect - Breaking change introduced in minor version
See original GitHub issueMinor version update 1.3.1 breaks node.js rendering of WithRedux. This is critical issue, avoid latest release.
Error: WithRedux has to be used only for top level pages, all other components has to be wrapped in connect at initStore (/var/app/current/node_modules/next-redux-wrapper/src/index.js:33:15) at WrappedCmp (/var/app/current/node_modules/next-redux-wrapper/src/index.js:95:19) at ReactCompositeComponentWrapper._constructComponentWithoutOwner (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:308:14) at ReactCompositeComponentWrapper._constructComponent (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:284:19) at ReactCompositeComponentWrapper.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:187:21) at Object.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34) at ReactCompositeComponentWrapper.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:257:21) at Object.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34) at ReactCompositeComponentWrapper.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:257:21) at Object.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34) at ReactCompositeComponentWrapper.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:257:21) at Object.mountComponent (/var/app/current/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/var/app/current/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
OK, I will change this to a warning.
Released 1.3.2