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

Commit 64a3d65

Browse files
committed
Fix routeActions APIs
1 parent c02d693 commit 64a3d65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ An object that contains all the actions creators you can use to manipulate histo
146146

147147
* `push(nextLocation: LocationDescriptor)`
148148
* `replace(nextLocation: LocationDescriptor)`
149-
* `go(nextLocation: LocationDescriptor)`
150-
* `goForward(nextLocation: LocationDescriptor)`
151-
* `goBack(nextLocation: LocationDescriptor)`
149+
* `go(n: number)`
150+
* `goForward()`
151+
* `goBack()`
152152

153153
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)