Skip to content

Commit 4cfeba8

Browse files
committed
setRouteLeaveHook over setLeaveHook
I think in rc4 the API is `setRouteLeaveHook` instead of `setLeaveHook` ?
1 parent 6bdedca commit 4cfeba8

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)