Type Alias FamilyRoute
FamilyRoute:
| {
family: Family;
navigation?: "document";
load?(ctx: RouteContext): unknown;
}
| { family?: undefined; load(ctx: RouteContext): unknown }
| {
family: Family;
navigation?: "document";
load?(ctx: RouteContext): unknown;
}
| { family?: undefined; load(ctx: RouteContext): unknown }
Type Declaration
- { family: Family; navigation?: "document"; load?(ctx: RouteContext): unknown }
-
family: Family
binds the route to one held row;
loadis then optional -
Optionalnavigation?: "document"documentleaves this family's links and forms to the browser; absent, the page renders them -
load?: function
-
returns the row the key names, which the server builds its own artifact from
Parameters
- ctx: RouteContext
Returns unknown
-
-
- { family?: undefined; load(ctx: RouteContext): unknown }
-
Optionalfamily?: undefinedabsent, so
loadreturns the JSON the route renders -
load: function
-
the fields a template or projection route takes; a family route needs no
load