Creates a new instance of a Route.
A parent route or null
if there is no parent.
Route options.
Returns a route location.
Route params.
Location options.
A component rendered by the route, or undefined
if a lazyComponent isn't
loaded.
A callback that loads data required to render a route.
A component that is rendered when an error was thrown during route rendering.
Loads RouteOptions.lazyComponent once and caches it forever, unless an error occurred during loading.
What to render when a component or data are being loaded.
A component that is rendered when a route is being loaded.
A component that is rendered if notFound was called during route loading or rendering
An adapter that can validate and transform params extracted from the Location.pathname and Location.searchParams.
If paramsAdapter throws during parsing, then route isn't matched and error is ignored.
Readonly
parentA parent route or null
if there is no parent.
A template of a pathname pattern.
Where the route is rendered.
A route that can be rendered by a router.
Note: Prefer createRoute over a direct Route instantiation.