wilddragon-site/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.d.ts

13 lines
570 B
TypeScript
Raw Normal View History

2026-04-17 15:51:01 -04:00
import { CacheSignal } from '../cache-signal';
export declare function trackPendingChunkLoad(promise: Promise<unknown>): void;
export declare function trackPendingImport(exportsOrPromise: unknown): void;
/**
* A top-level dynamic import (or chunk load):
*
* 1. delays a prerender (potentially for a task or longer)
* 2. may reveal more caches that need be filled
*
* So if we see one, we want to extend the duration of `cacheSignal` at least until the import/chunk-load is done.
*/
export declare function trackPendingModules(cacheSignal: CacheSignal): void;