RouterWithPropsConfigF
Value members
Concrete methods
Check specified pages for possible route config errors, and returns any detected.
Check specified pages for possible route config errors, and returns any detected.
Note: Requires that Page#equals()
be sensible.
Note: If in production-mode (fullOptJS
), this always returns an empty collection.
- Returns:
Error messages (or an empty collection if no errors are detected).
Add an procedure to be performed after the router renders.
Add an procedure to be performed after the router renders.
- Value parameters:
- f
Given the previous page and the current page that just rendered, return a callback.
Add an procedure to be performed after the router renders.
Add an procedure to be performed after the router renders.
- Value parameters:
- f
Given the previous page, the current page that just rendered and props, return a callback.
Specify how to render a page once it's resolved. This function will be applied to all renderable pages.
Specify how to render a page once it's resolved. This function will be applied to all renderable pages.
Specify how to render a page once it's resolved. This function will be applied to all renderable pages.
Specify how to render a page once it's resolved. This function will be applied to all renderable pages.
Specify (entirely) what to do after the router renders.
Specify (entirely) what to do after the router renders.
- Value parameters:
- f
Given the previous page and the current page that just rendered, return a callback.
Specify (entirely) what to do after the router renders.
Specify (entirely) what to do after the router renders.
- Value parameters:
- f
Given the previous page, the current page that just rendered and props, return a callback.
Change the document title after the router renders.
Change the document title after the router renders.
- Value parameters:
- f
Given the current page that just rendered, return a new title.
Change the document title after the router renders.
Change the document title after the router renders.
- Value parameters:
- f
Given the current page that just rendered, return potential new title.
Change the document title after the router renders.
Change the document title after the router renders.
- Value parameters:
- f
Given the current page that just rendered and props, return potential new title.
Change the document title after the router renders.
Change the document title after the router renders.
- Value parameters:
- f
Given the current page that just rendered and props, return a new title.
Asserts that the page arguments provided, don't encounter any route config errors.
Asserts that the page arguments provided, don't encounter any route config errors.
If any errors are detected, the Router will be replaced with a new dummy router that displays the error messages.
If you want direct, programmatic access to the errors themselves, use detectErrors instead.
Note: Requires that Page#equals()
be sensible.
Note: If in production-mode (fullOptJS
), this always returns this
.
- Returns:
In the event that errors are detected, a new RouterConfig that displays them; else this unmodified.