You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
- Remove `history` module published within the tarball. [#133](https://github.com/rackt/react-router-redux/issues/133)
22
-
- Make actions conform to [Flux Standard Action](https://github.com/acdlite/flux-standard-action). [#208](https://github.com/rackt/react-router-redux/pull/208)
21
+
- Remove `history` module published within the tarball. [#133](https://github.com/reactjs/react-router-redux/issues/133)
22
+
- Make actions conform to [Flux Standard Action](https://github.com/acdlite/flux-standard-action). [#208](https://github.com/reactjs/react-router-redux/pull/208)
Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the first public release.
27
27
@@ -31,20 +31,20 @@ Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the fir
31
31
* If you use redux devtools, you need to call `middleware.listenForReplays(store)` on the middleware returned from `syncHistory`. Create the store first with the middleware, then call this function with the store.
32
32
* Action creators are now contained in a single object called `routeActions`. `go`, `goBack`, and `goForward` action creators have been added.
33
33
*`UPDATE_PATH` is now `UPDATE_LOCATION`.
34
-
* The fully parsed [location object](https://github.com/rackt/history/blob/master/docs/Location.md) is now stored in the state instead of a URL string. To access the path, use `state.routing.location.pathname` instead of `state.routing.path`.
34
+
* The fully parsed [location object](https://github.com/reactjs/history/blob/master/docs/Location.md) is now stored in the state instead of a URL string. To access the path, use `state.routing.location.pathname` instead of `state.routing.path`.
35
35
36
-
[View the new docs](https://github.com/rackt/react-router-redux#api)
36
+
[View the new docs](https://github.com/reactjs/react-router-redux#api)
> **Keep your router in sync with application state**:sparkles:
6
6
7
7
_Formerly known as redux-simple-router_
8
8
9
-
You're a smart person. You use [Redux](https://github.com/rackt/redux) to manage your application state. You use [React Router](https://github.com/rackt/react-router) to do routing. All is good.
9
+
You're a smart person. You use [Redux](https://github.com/rackt/redux) to manage your application state. You use [React Router](https://github.com/reactjs/react-router) to do routing. All is good.
10
10
11
11
But the two libraries don't coordinate. You want to do time travel with your application state, but React Router doesn't navigate between pages when you replay actions. It controls an important part of application state: the URL.
12
12
@@ -24,7 +24,7 @@ If you want to install the next major version, use `react-router-redux@next`. Ru
24
24
25
25
This library allows you to use React Router's APIs as they are documented. And, you can use redux like you normally would, with a single app state. The library simply enhances a history instance to allow it to synchronize any changes it receives into application state.
@@ -90,7 +90,7 @@ These two hooks will allow you to store the state that this library uses in what
90
90
91
91
#### How do I access router state in a container component?
92
92
93
-
React Router [provides route information via a route component's props](https://github.com/rackt/react-router/blob/latest/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/rackt/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/rackt/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options):
93
+
React Router [provides route information via a route component's props](https://github.com/reactjs/react-router/blob/latest/docs/Introduction.md#getting-url-parameters). This makes it easy to access them from a container component. When using [react-redux](https://github.com/rackt/react-redux) to `connect()` your components to state, you can access the router's props from the [2nd argument of `mapStateToProps`](https://github.com/rackt/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options):
94
94
95
95
```js
96
96
functionmapStateToProps(state, ownProps) {
@@ -154,15 +154,15 @@ The `options` object takes in the following optional keys:
154
154
155
155
**You must install `routerMiddleware` for these action creators to work.**
156
156
157
-
Action creators that correspond with the [history methods of the same name](https://github.com/rackt/history/blob/master/docs/GettingStarted.md#navigation). For reference they are defined as follows:
157
+
Action creators that correspond with the [history methods of the same name](https://github.com/reactjs/history/blob/master/docs/GettingStarted.md#navigation). For reference they are defined as follows:
158
158
159
159
-`push` - Pushes a new location to history, becoming the current location.
160
160
-`replace` - Replaces the current location in history.
161
161
-`go` - Moves backwards or forwards a relative number of locations in history.
162
162
-`goForward` - Moves forward one location. Equivalent to `go(1)`
163
163
-`goBack` - Moves backwards one location. Equivalent to `go(-1)`
164
164
165
-
Both `push` and `replace` take in a [location descriptor](https://github.com/rackt/history/blob/master/docs/Glossary.md#locationdescriptor), which can be an object describing the URL or a plain string URL.
165
+
Both `push` and `replace` take in a [location descriptor](https://github.com/reactjs/history/blob/master/docs/Glossary.md#locationdescriptor), which can be an object describing the URL or a plain string URL.
166
166
167
167
These action creators are also available in one single object as `routerActions`, which can be used as a convenience when using Redux's `bindActionCreators()`.
0 commit comments