Files
Webklar.com/node_modules/next/dist/client/components/router-reducer/create-optimistic-tree.d.ts
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

7 lines
422 B
TypeScript

import type { FlightRouterState } from '../../../server/app-render/types';
/**
* Create optimistic version of router state based on the existing router state and segments.
* This is used to allow rendering layout-routers up till the point where data is missing.
*/
export declare function createOptimisticTree(segments: string[], flightRouterState: FlightRouterState | null, parentRefetch: boolean): FlightRouterState;