From ddec69de6cf53f69411713a75e98f1da8d8a2fed Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 18 Oct 2025 12:26:30 +0200 Subject: [PATCH] docs(experimental): fix parent reference in record --- packages/router/src/experimental/router.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/router/src/experimental/router.ts b/packages/router/src/experimental/router.ts index 919835bc..8db08ce6 100644 --- a/packages/router/src/experimental/router.ts +++ b/packages/router/src/experimental/router.ts @@ -310,21 +310,18 @@ export interface EXPERIMENTAL_RouteRecordNormalized_Group extends EXPERIMENTAL_RouteRecordNormalized_Base, EXPERIMENTAL_RouteRecord_Group { meta: RouteMeta - parent: EXPERIMENTAL_RouteRecordNormalized | null } export interface EXPERIMENTAL_RouteRecordNormalized_Redirect extends EXPERIMENTAL_RouteRecordNormalized_Base, EXPERIMENTAL_RouteRecord_Redirect { meta: RouteMeta - parent: EXPERIMENTAL_RouteRecordNormalized | null } export interface EXPERIMENTAL_RouteRecordNormalized_Components extends EXPERIMENTAL_RouteRecordNormalized_Base, EXPERIMENTAL_RouteRecord_Components { meta: RouteMeta - parent: EXPERIMENTAL_RouteRecordNormalized | null } export type EXPERIMENTAL_RouteRecordNormalized_Matchable = @@ -352,11 +349,12 @@ export function normalizeRouteRecord( | Omit = { meta: {}, // must be defined as non enumerable because it contains modules + // which are complex objects that cannot be stringified + // when user does {{ $route }} // mods: {}, props: {}, - // TODO :make it optional as it changes nothing - parent: null, - // not having the property changes nothing + // NOTE: not having the property changes nothing + // parent: null, // aliasOf: null, ...record, // FIXME: to be removed -- 2.47.3