File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,19 @@ Router.AsyncState
2626Router .PathState
2727Router .RouteLookup
2828Router .Transitions
29+
30+ // methods
31+ Router .renderRoutesToString
2932```
3033
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.
2929
3030One of:
3131
32- - ` 'imitateBrowser ' ` - default, imitates what browsers do in a typical
32+ - ` 'browser ' ` - default, imitates what browsers do in a typical
3333 page reload scenario: preserves scroll positions when using the back
3434 button, scrolls up when you come to a new route by clicking a link,
3535 etc.
@@ -39,12 +39,15 @@ One of:
3939- ` 'none' ` - doesn't do anything (you should probably do something about
4040 that).
4141
42+ ### ` onError `
43+
44+ Called when a transition throws an error.
45+
4246#### signature
4347
4448` function(error) `
4549
46- Example
47- -------
50+ #### Example
4851
4952``` jsx
5053function onError (error ) {
You can’t perform that action at this time.
0 commit comments