Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
563 B
Text
8 lines
563 B
Text
/**
|
|
* in CacheComponents, `import(...)` will be transformed into `trackDynamicImport(import(...))`.
|
|
* A dynamic import is essentially a cached async function, except it's cached by the module system.
|
|
*
|
|
* The promises are tracked globally regardless of if the `import()` happens inside a render or outside of it.
|
|
* When rendering, we can make the `cacheSignal` wait for all pending promises via `trackPendingModules`.
|
|
* */
|
|
export declare function trackDynamicImport<TExports extends Record<string, any>>(modulePromise: Promise<TExports>): Promise<TExports>;
|