Skip to content

RouteDataState

Describes@ebitex/content-sdk 1.xSee the changelog:@ebitex/content-sdk

RouteDataState<TData> = { status: "loading"; } | { status: "ready"; value: TData; } | { status: "notFound"; } | { error: unknown; status: "error"; }

What useRouteData reports, the way useResolvedComponent reports a resolution: a status to switch on, no Suspense. notFound means the loader answered NotFound, or the definition does not belong to this page’s route (a different or missing context tag in production).

TData