React Router API Reference
    Preparing search index...

    Type Alias unstable_RouterFetchContext

    unstable_RouterFetchContext:
        | { type: "manifest" }
        | {
            fetcherKey: string | null;
            navigationType: NavigationType;
            type: "navigation";
        }
        | {
            fetcherKey: string
            | null;
            navigationType: null;
            type: "initialization" | "fetcher" | "revalidation";
        }

    Describes the operation that initiated an internal router request.

    Requests that reload fetchers as part of a navigation, revalidation, or initialization redirect keep that initiating type. fetcherKey identifies the fetcher being loaded, or is null when the request targets route loaders or actions.

    navigationType is the history action ("PUSH", "REPLACE", or "POP") for navigation-initiated data requests, including reloaded fetchers. It is null for initialization, fetcher, and revalidation requests. Manifest requests have no navigation type.