File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,36 @@ If `true`, the router will not scroll the window up globally when any
27
27
route is transitioned to. Defaults to ` false ` . When ` false ` , the
28
28
` <Route/> ` gets to decide whether or not to scroll on transition.
29
29
30
+ ### ` onAbortedTransition `
31
+
32
+ A function called when any transition is aborted.
33
+
34
+ ### ` onActiveStateChange `
35
+
36
+ A function called when the active routes change.
37
+
38
+ #### signature
39
+
40
+ ` function(nextState) `
41
+
42
+ ### ` onTransitionError `
43
+
44
+ A function called when a transition has an error.
45
+
46
+ #### signature
47
+
48
+ ` function(error) `
49
+
30
50
Example
31
51
-------
32
52
33
53
``` jsx
54
+ function onError (error ) {
55
+ handleError (error);
56
+ }
57
+
34
58
var routes = (
35
- < Routes location= " history" >
59
+ < Routes location= " history" onTransitionError = {onError} >
36
60
< Route handler= {App}/ >
37
61
< / Routes>
38
62
);
You can’t perform that action at this time.
0 commit comments