Plumile JS API
    Preparing search index...

    Function prepareMatch

    • Prepares a matched route by executing prepare callbacks and resolving resource pages.

      Type Parameters

      • TParams extends Partial<Record<string, string | string[]>>
      • TContext = unknown

      Parameters

      • match: RouterMatchedRoute<TParams> | null

        Matched route descriptor (or null when nothing matched).

      • Optionalquery: Record<string, unknown>

        Optional query object forwarded to prepare functions.

      • Optionalinstrumentation: PrepareInstrumentation
      • Optionalcontext: TContext

        Optional router context forwarded to prepare functions.

      Returns PreparedMatch<TParams, TContext>

      Prepared hierarchy ready for the renderer.