/opt/canhelp/node_modules/next/dist/client/components/segment-cache-impl
NameSizeModeActions
cache-key.d.ts5090644editdlrm
cache-key.js8770644editdlrm
cache-key.js.map14070644editdlrm
cache.d.ts92220644editdlrm
cache.js757180644editdlrm
cache.js.map1189340644editdlrm
lru.d.ts3490644editdlrm
lru.js40920644editdlrm
lru.js.map61180644editdlrm
navigation.d.ts16140644editdlrm
navigation.js178550644editdlrm
navigation.js.map286640644editdlrm
prefetch.d.ts16380644editdlrm
prefetch.js11990644editdlrm
prefetch.js.map28400644editdlrm
scheduler.d.ts55640644editdlrm
scheduler.js469350644editdlrm
scheduler.js.map736450644editdlrm
tuple-map.d.ts8580644editdlrm
tuple-map.js55220644editdlrm
tuple-map.js.map85030644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/client/components/segment-cache-impl/prefetch.d.ts (1638B)
import type { FlightRouterState } from '../../../server/app-render/types'; import { type PrefetchTaskFetchStrategy } from '../segment-cache'; /** * Entrypoint for prefetching a URL into the Segment Cache. * @param href - The URL to prefetch. Typically this will come from a , * or router.prefetch. It must be validated before we attempt to prefetch it. * @param nextUrl - A special header used by the server for interception routes. * Roughly corresponds to the current URL. * @param treeAtTimeOfPrefetch - The FlightRouterState at the time the prefetch * was requested. This is only used when PPR is disabled. * @param fetchStrategy - Whether to prefetch dynamic data, in addition to * static data. This is used by ``. * @param onInvalidate - A callback that will be called when the prefetch cache * When called, it signals to the listener that the data associated with the * prefetch may have been invalidated from the cache. This is not a live * subscription — it's called at most once per `prefetch` call. The only * supported use case is to trigger a new prefetch inside the listener, if * desired. It also may be called even in cases where the associated data is * still cached. Prefetching is a poll-based (pull) operation, not an event- * based (push) one. Rather than subscribe to specific cache entries, you * occasionally poll the prefetch cache to check if anything is missing. */ export declare function prefetch(href: string, nextUrl: string | null, treeAtTimeOfPrefetch: FlightRouterState, fetchStrategy: PrefetchTaskFetchStrategy, onInvalidate: null | (() => void)): void;