UNPKG

next

Version:

The React Framework

26 lines (25 loc) 1.27 kB
import type { FlightDataPath, FlightRouterState, PreloadCallbacks } from './types'; import type { LoaderTree } from '../lib/app-dir-module'; import type { CreateSegmentPath, AppRenderContext } from './app-render'; /** * Use router state to decide at what common layout to render the page. * This can either be the common layout between two pages or a specific place to start rendering from using the "refetch" marker in the tree. */ export declare function walkTreeWithFlightRouterState({ createSegmentPath, loaderTreeToFilter, parentParams, isFirst, flightRouterState, parentRendered, rscPayloadHead, injectedCSS, injectedJS, injectedFontPreloadTags, rootLayoutIncluded, getMetadataReady, ctx, preloadCallbacks, }: { createSegmentPath: CreateSegmentPath; loaderTreeToFilter: LoaderTree; parentParams: { [key: string]: string | string[]; }; isFirst: boolean; flightRouterState?: FlightRouterState; parentRendered?: boolean; rscPayloadHead: React.ReactNode; injectedCSS: Set<string>; injectedJS: Set<string>; injectedFontPreloadTags: Set<string>; rootLayoutIncluded: boolean; getMetadataReady: () => Promise<void>; ctx: AppRenderContext; preloadCallbacks: PreloadCallbacks; }): Promise<FlightDataPath[]>;