From 1de0861a092402826557090e4a676a4c1976185a Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Sat, 11 Mar 2017 13:11:49 -0500 Subject: [PATCH 1/5] :truck: Moving notice --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7d4eefa..22149af 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +# We're moving! + +react-router-redux is going to live alongside react-router. In fact, it's already set up over there. [Go take a look!](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux) + +**This repo is for react-router-redux 4.x, which is only compatible with react-router 2.x and 3.x** + +The next version of react-router-redux will be 5.0.0 and will be compatible with react-router 4.x. It is currently being actively developed [over there](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux). Feel free to help out! + # react-router-redux [![npm version](https://img.shields.io/npm/v/react-router-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux) [![npm downloads](https://img.shields.io/npm/dm/react-router-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux) [![build status](https://img.shields.io/travis/reactjs/react-router-redux/master.svg?style=flat-square)](https://travis-ci.org/reactjs/react-router-redux) From 5682bf71851574de405d8cf56497f364216bdb58 Mon Sep 17 00:00:00 2001 From: krasevych Date: Wed, 22 Mar 2017 19:24:29 +0200 Subject: [PATCH 2/5] Update README.md (#554) * Update README.md add new starter kit with react-router-redux and other new technologies like Styled Components and Universal Webpack * Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 22149af..e4744b6 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ store.dispatch(push('/foo')) Examples from the community: +* [react-redux-styled-hot-universal](https://github.com/krasevych/react-redux-styled-hot-universal) (SSR, Universal Webpack, Redux, React-router, Webpack 2, Babel, Styled Components and more...) * [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial) - react-router-redux including **Server Rendering** using [React on Rails](https://github.com/shakacode/react_on_rails/), live at [www.reactrails.com](http://www.reactrails.com/). * [davezuko/react-redux-starter-kit](https://github.com/davezuko/react-redux-starter-kit) - popular redux starter kit * **tip**: migrating from react-router-redux `^3.0.0`? use [this commit](https://github.com/davezuko/react-redux-starter-kit/commit/0df26907) as a reference From 210e6f72f1dc7dd31b8cf1eb4de25e6a68789b55 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Thu, 23 Mar 2017 10:36:21 -0400 Subject: [PATCH 3/5] Fix some links. Closes #555 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4744b6..3dcf488 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ These two hooks will allow you to store the state that this library uses in what #### How do I access router state in a container component? -React Router [provides route information via a route component's props](https://github.com/ReactTraining/react-router/blob/master/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/reactjs/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options): +React Router [provides route information via a route component's props](https://github.com/ReactTraining/react-router/blob/v3/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/reactjs/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options): ```js function mapStateToProps(state, ownProps) { @@ -171,7 +171,7 @@ The `options` object takes in the following optional keys: **You must install `routerMiddleware` for these action creators to work.** Action creators that correspond with the [history methods of the same name] -(https://github.com/mjackson/history/blob/master/README.md#navigation). For reference they are defined as follows: +(https://github.com/ReactTraining/history/blob/v3/docs/GettingStarted.md#navigation). For reference they are defined as follows: - `push` - Pushes a new location to history, becoming the current location. - `replace` - Replaces the current location in history. @@ -179,7 +179,7 @@ Action creators that correspond with the [history methods of the same name] - `goForward` - Moves forward one location. Equivalent to `go(1)` - `goBack` - Moves backwards one location. Equivalent to `go(-1)` -Both `push` and `replace` take in a [location descriptor](https://github.com/ReactTraining/history/blob/v2/docs/Glossary.md#locationdescriptor), which can be an object describing the URL or a plain string URL. +Both `push` and `replace` take in a [location descriptor](https://github.com/ReactTraining/history/blob/v3/docs/Location.md), which can be an object describing the URL or a plain string URL. These action creators are also available in one single object as `routerActions`, which can be used as a convenience when using Redux's `bindActionCreators()`. From 1a5705fb39331a63b84abc313922d8a3810f1a6d Mon Sep 17 00:00:00 2001 From: Pablo Navarro Date: Wed, 3 Jan 2018 09:41:11 -0800 Subject: [PATCH 4/5] Fix a markdown link (#619) --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3dcf488..bd0a3ba 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,7 @@ The `options` object takes in the following optional keys: **You must install `routerMiddleware` for these action creators to work.** -Action creators that correspond with the [history methods of the same name] -(https://github.com/ReactTraining/history/blob/v3/docs/GettingStarted.md#navigation). For reference they are defined as follows: +Action creators that correspond with the [history methods of the same name](https://github.com/ReactTraining/history/blob/v3/docs/GettingStarted.md#navigation). For reference they are defined as follows: - `push` - Pushes a new location to history, becoming the current location. - `replace` - Replaces the current location in history. From afe0aa1b355f1ba2e54ea6a8e683695d9575dca4 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Fri, 26 Oct 2018 11:42:15 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bd0a3ba..41145ee 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ -# We're moving! +# Project Deprecated -react-router-redux is going to live alongside react-router. In fact, it's already set up over there. [Go take a look!](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux) +This project is no longer maintained. For your Redux <-> Router syncing needs with React Router 4+, please see one of these libraries instead: -**This repo is for react-router-redux 4.x, which is only compatible with react-router 2.x and 3.x** +* [connected-react-router](https://github.com/supasate/connected-react-router) -The next version of react-router-redux will be 5.0.0 and will be compatible with react-router 4.x. It is currently being actively developed [over there](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux). Feel free to help out! +--- + +⚠️ **This repo is for react-router-redux 4.x, which is only compatible with react-router 2.x and 3.x** # react-router-redux