File tree 2 files changed +20
-3
lines changed 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,19 @@ Router.AsyncState
26
26
Router .PathState
27
27
Router .RouteLookup
28
28
Router .Transitions
29
+
30
+ // methods
31
+ Router .renderRoutesToString
29
32
```
30
33
34
+ Methods
35
+ -------
36
+
37
+ ### ` renderRoutesToString(routes, path, callback) `
38
+
39
+ We will document this more when the data loading story finalizes.
40
+
41
+ ### ` renderRoutesToStaticMarkup(routes, path, callback) `
42
+
43
+ We will document this more when the data loading story finalizes.
44
+
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Determines the scrolling behavior after route transitions.
29
29
30
30
One of:
31
31
32
- - ` 'imitateBrowser ' ` - default, imitates what browsers do in a typical
32
+ - ` 'browser ' ` - default, imitates what browsers do in a typical
33
33
page reload scenario: preserves scroll positions when using the back
34
34
button, scrolls up when you come to a new route by clicking a link,
35
35
etc.
@@ -39,12 +39,15 @@ One of:
39
39
- ` 'none' ` - doesn't do anything (you should probably do something about
40
40
that).
41
41
42
+ ### ` onError `
43
+
44
+ Called when a transition throws an error.
45
+
42
46
#### signature
43
47
44
48
` function(error) `
45
49
46
- Example
47
- -------
50
+ #### Example
48
51
49
52
``` jsx
50
53
function onError (error ) {
You can’t perform that action at this time.
0 commit comments