Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 80a84a7

Browse files
committed
Update README.md
1 parent a6a4b28 commit 80a84a7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,14 @@ An action type that you can listen for in your reducers to be notified of route
145145
An action creator that you can use to update the current URL and update the browser history.
146146
The LocationDescriptor parameter can be either as string with the path or a [LocationDescriptorObject](https://github.com/rackt/history/blob/v1.17.0/docs/Glossary.md#locationdescriptor) if you need more detailed control.
147147

148-
#### `replace(nextLocation: LocationDescriptor)`
149-
#### `go(nextLocation: LocationDescriptor)`
150-
#### `goBack(nextLocation: LocationDescriptor)`
151-
#### `goForward(nextLocation: LocationDescriptor)`
148+
### routeActions
152149

153-
Action creators for manipulating history. These directory call the analogous [history methods](https://github.com/rackt/history/blob/master/docs/GettingStarted.md#navigation).
150+
An object that contains all the actions creators you can use to manipulate history:
151+
152+
* `push(nextLocation: LocationDescriptor)`
153+
* `replace(nextLocation: LocationDescriptor)`
154+
* `go(nextLocation: LocationDescriptor)`
155+
* `goForward(nextLocation: LocationDescriptor)`
156+
* `goBack(nextLocation: LocationDescriptor)`
157+
158+
The most common action is to push a new URL via `routeActions.push(...)`. These all directly call the analogous [history methods](https://github.com/rackt/history/blob/master/docs/GettingStarted.md#navigation).

0 commit comments

Comments
 (0)