Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias FamilyRoute

    FamilyRoute:
        | {
            family: Family;
            navigation?: "document";
            load?(ctx: RouteContext): unknown;
        }
        | { family?: undefined; load(ctx: RouteContext): unknown }

    the fields a template or projection route takes; a family route needs no load

    Type Declaration

    • { family: Family; navigation?: "document"; load?(ctx: RouteContext): unknown }
      • family: Family

        binds the route to one held row; load is then optional

      • Optionalnavigation?: "document"

        document leaves this family's links and forms to the browser; absent, the page renders them

      • load?: function
    • { family?: undefined; load(ctx: RouteContext): unknown }
      • Optionalfamily?: undefined

        absent, so load returns the JSON the route renders

      • load: function