Skip to content

Commit 8cd5349

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/router.tsx
2 parents 179de08 + 2506a72 commit 8cd5349

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-async",
3-
"version": "0.2.2",
3+
"version": "0.2.4",
44
"author": {
55
"name": "Oleg Martynov",
66
"email": "[email protected]"

src/router.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ export default class Router extends React.Component<Props, State> {
124124
}, renderCallback);
125125
}
126126
}
127+
goBack() {
128+
this.history.goBack();
129+
}
130+
goForward() {
131+
this.history.goForward();
132+
}
133+
go(n) {
134+
this.history.go(n);
135+
}
127136
private _locationChanged = async (location, action) => {
128137
try {
129138
const { path, route, status, params, redirect, result, ctx } = await this.router.run({ path: location.pathname });

0 commit comments

Comments
 (0)