React Router API Reference
    Preparing search index...

    Interface UIMatch<Data, Handle>

    interface UIMatch<Data = unknown, Handle = unknown> {
        data: undefined | Data;
        handle: Handle;
        id: string;
        loaderData: undefined | Data;
        params: Params<string>;
        pathname: string;
    }

    Type Parameters

    • Data = unknown
    • Handle = unknown
    Index

    Properties

    data: undefined | Data

    The return value from the matched route's loader or clientLoader. This might be undefined if this route's loader (or a deeper route's loader) threw an error and we're currently displaying an ErrorBoundary.

    Use UIMatch.loaderData instead

    handle: Handle

    The handle object exported from the matched route module

    id: string
    loaderData: undefined | Data

    The return value from the matched route's loader or clientLoader. This might be undefined if this route's loader (or a deeper route's loader) threw an error and we're currently displaying an ErrorBoundary.

    params: Params<string>

    Dynamic route params for the matched route.

    pathname: string