From d7d061c92ddd71d1c041c8edb92c516ec0304570 Mon Sep 17 00:00:00 2001 From: Dimitris Karagiannis Date: Sat, 9 Aug 2025 00:20:41 +0300 Subject: [PATCH] docs: update RouteMatch type to include more properties based on Matches.d.ts --- .../framework/react/api/router/RouteMatchType.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/router/framework/react/api/router/RouteMatchType.md b/docs/router/framework/react/api/router/RouteMatchType.md index d4559b0bf1..d764a7496f 100644 --- a/docs/router/framework/react/api/router/RouteMatchType.md +++ b/docs/router/framework/react/api/router/RouteMatchType.md @@ -9,6 +9,8 @@ The `RouteMatch` type represents a route match in TanStack Router. interface RouteMatch { id: string routeId: string + fullPath: string + index: number pathname: string params: Route['allParams'] status: 'pending' | 'success' | 'error' | 'redirected' | 'notFound' @@ -24,7 +26,13 @@ interface RouteMatch { search: Route['fullSearchSchema'] fetchedAt: number abortController: AbortController - cause: 'enter' | 'stay' + cause: 'preload' | 'enter' | 'stay' + fetchCount: number + preload: boolean + invalid: boolean + headers?: Record + globalNotFound?: boolean ssr?: boolean | 'data-only' + displayPendingPromise?: Promise } ```