Skip to content

Commit 3494ed3

Browse files
committed
Merge pull request #2858 from ykka/patch-1
setRouteLeaveHook over setLeaveHook
2 parents 6bdedca + 4cfeba8 commit 3494ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/advanced/ConfirmingNavigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Home = React.createClass({
1010
},
1111

1212
componentDidMount() {
13-
this.context.router.setLeaveHook(this.props.route, this.routerWillLeave)
13+
this.context.router.setRouteLeaveHook(this.props.route, this.routerWillLeave)
1414
},
1515

1616
routerWillLeave(nextLocation) {

0 commit comments

Comments
 (0)