Plumile JS API
    Preparing search index...

    Type Alias PrepareParams<TContext, TVariables, TQueryShape>

    Parameters passed to a route's prepare function.

    type PrepareParams<
        TContext,
        TVariables extends ParamData,
        TQueryShape extends UnknownQueryShape = UnknownQueryShape,
    > = {
        context: TContext;
        match: RouterMatchedRoute<TVariables>;
        matchedRoute: FlatRoute<TVariables>;
        query: TQueryShape;
        resourcePage?: ResourcePage | null;
        variables: TVariables;
    }

    Type Parameters

    Index

    Properties

    context: TContext

    Router-level context

    The matched route with extracted parameters

    matchedRoute: FlatRoute<TVariables>

    The flat route that was matched

    Typed query object

    resourcePage?: ResourcePage | null

    Resource page for lazy-loaded components

    variables: TVariables

    Extracted URL parameters