We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ae09e8 commit c85bc41Copy full SHA for c85bc41
examples/transitions/app.js
@@ -31,10 +31,10 @@ var Dashboard = React.createClass({
31
var Form = React.createClass({
32
mixins: [ Navigation, TransitionHook ],
33
34
- routerWillLeave(nextState, router) {
+ routerWillLeave(nextState, transition) {
35
if (findDOMNode(this.refs.userInput).value !== '')
36
if (!confirm('You have unsaved information, are you sure you want to leave this page?'))
37
- router.cancelTransition();
+ transition.abort();
38
},
39
40
handleSubmit(event) {
0 commit comments