diff --git a/code/frameworks/experimental-nextjs-vite/src/routing/app-router-provider.tsx b/code/frameworks/experimental-nextjs-vite/src/routing/app-router-provider.tsx index 68e01381948c..7a455cbcbc65 100644 --- a/code/frameworks/experimental-nextjs-vite/src/routing/app-router-provider.tsx +++ b/code/frameworks/experimental-nextjs-vite/src/routing/app-router-provider.tsx @@ -44,8 +44,6 @@ function getSelectedParams(currentTree: FlightRouterState, params: Params = {}): continue; } - // Ensure catchAll and optional catchall are turned into an array - // Ensure catchAll and optional catchall are turned into an array const isCatchAll = isDynamicParameter && (segment[2] === 'c' || segment[2] === 'oc'); @@ -82,6 +80,16 @@ export const AppRouterProvider: React.FC @@ -106,10 +114,18 @@ export const AppRouterProvider: React.FC v15.2 + parentTree: tree, + parentCacheNode: newLazyCacheNode, + // END url: pathname, + loading: null, }} > {children} diff --git a/code/frameworks/nextjs/src/routing/app-router-provider.tsx b/code/frameworks/nextjs/src/routing/app-router-provider.tsx index 36e980b1a5fe..54ac209fdc72 100644 --- a/code/frameworks/nextjs/src/routing/app-router-provider.tsx +++ b/code/frameworks/nextjs/src/routing/app-router-provider.tsx @@ -80,6 +80,16 @@ export const AppRouterProvider: React.FC @@ -104,8 +114,16 @@ export const AppRouterProvider: React.FC v15.2 + parentTree: tree, + parentCacheNode: newLazyCacheNode, + // END url: pathname, loading: null, }}