{"id":21967388,"url":"https://github.com/8398a7/connected-react-router-redux","last_synced_at":"2026-05-03T18:31:46.256Z","repository":{"id":83235870,"uuid":"152739667","full_name":"8398a7/connected-react-router-redux","owner":"8398a7","description":"It's a HoC that updates the reducer when using connected-react-router.","archived":false,"fork":false,"pushed_at":"2018-11-01T13:23:17.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T23:41:39.690Z","etag":null,"topics":["connected-react-router","react","react-redux","react-router-dom","redux"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/connected-react-router-redux","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8398a7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-12T11:18:00.000Z","updated_at":"2018-11-01T13:23:18.000Z","dependencies_parsed_at":"2023-03-01T06:30:16.440Z","dependency_job_id":null,"html_url":"https://github.com/8398a7/connected-react-router-redux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/8398a7/connected-react-router-redux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Fconnected-react-router-redux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Fconnected-react-router-redux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Fconnected-react-router-redux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Fconnected-react-router-redux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8398a7","download_url":"https://codeload.github.com/8398a7/connected-react-router-redux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8398a7%2Fconnected-react-router-redux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32579705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connected-react-router","react","react-redux","react-router-dom","redux"],"created_at":"2024-11-29T13:26:19.699Z","updated_at":"2026-05-03T18:31:46.252Z","avatar_url":"https://github.com/8398a7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connected React Router Redux\n\nIt's a HoC that updates the reducer when using [connected-react-router](https://github.com/supasate/connected-react-router).\u003cbr /\u003e\nHoC implementation using [How to navigate with Redux action](https://github.com/supasate/connected-react-router/blob/master/FAQ.md#how-to-navigate-with-redux-action) with store.dispatch.\n\n\n## Installation\n\nUsing [npm](https://www.npmjs.com/):\n```bash\n$ npm install --save connected-react-router-redux\n```\nOr [yarn](https://yarnpkg.com/):\n```bash\n$ yarn add connected-react-router-redux\n```\n\n## Usage\n\n```javascript\nimport { withRouterReducer } from 'connected-react-router-redux';\n...\n\nclass AppComponent extends React.Component {\n  ...\n}\n...\nexport default withRouterReducer(AppComponent);\n```\n\n#### connect(react-redux) usage.\n\n```javascript\n...\nimport { withRouterReducer } from 'connected-react-router-redux';\n...\n\nclass AppComponent extends React.Component {\n  ...\n}\n...\nexport default withRouterReducer(\n  connect(\n    mapStateToProps,\n    mapDispatchToProps,\n  )(AppComponent)\n);\n```\n\n### TypeScript\n\n```typescript\nimport { withRouterReducer } from 'connected-react-router-redux';\n...\n\nclass AppComponent extends React.Component\u003cAppComponentProps, {}\u003e {\n  ...\n}\n...\nexport default withRouterReducer(AppComponent);\n```\n\n#### connect(react-redux) usage.\n\n```typescript\n...\nimport { withRouterReducer } from 'connected-react-router-redux';\n...\n\nclass AppComponent extends React.Component\u003cAppComponentProps, {}\u003e {\n  ...\n}\n...\nexport default withRouterReducer(\n  connect\u003cMapStateToProps, MapDispatchToProps, React.ComponentClass\u003cAppComponentProps\u003e\u003e(\n    mapStateToProps,\n    mapDispatchToProps,\n  )(AppComponent)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8398a7%2Fconnected-react-router-redux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8398a7%2Fconnected-react-router-redux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8398a7%2Fconnected-react-router-redux/lists"}