A view wrapper for Redux and React-Router that simplifies mapping between routes, handling data fetching on route transitions, and navigating from dispatch functions. Current stable version is 0.2.1 (last released in 2016). Release cadence is low/unmaintained. Key differentiators: provides initialize/terminate lifecycle hooks that work even when routes share the same component (solving a common react-router gotcha), and injects the router as a third parameter to mapDispatchToProps for easy navigation. Requires react-redux 4.x, react-router >=2.0.0 or ^4.0.0-alpha.0, and lodash 4.x.
npm install redux-viewNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: extending ReduxView class, defining container, initialize, and mapStateToProps, then rendering with react-redux Provider and react-router Route.
Migrate to react-router v6 with hooks (useNavigate, useParams) and react-redux v7+ with hooks (useSelector, useDispatch).
Verify react-router version; use react-router-dom v4 or earlier. For v4+, the library may not function correctly.
Use getDerivedStateFromProps or useEffect in modern React. Library is not compatible with React Suspense or Concurrent Mode.
Ensure your build pipeline supports class properties (e.g., Babel plugin @babel/plugin-proposal-class-properties).
Use react-router v4's withRouter HOC or hooks to get history, or use the library's built-in router parameter but ensure compatibility.
Use import ReduxView from 'redux-view' (default import).
Run npm install --save redux-view and check import path is correct (no subpath).
Use react-router v3 or pass history directly. For v4+, use withRouter or hooks.
Ignore warning (still works) or consider migrating away from redux-view.