UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

8 lines 406 B
import { type PreloadFn } from "./PreloadContext.mjs"; /** * Returns the cross-instance `PreloadFn` from the surrounding * `PreloadProvider`, or a direct-call fallback when there is none. Use it inside * a `CoordinatedLazy` `preload(hoisted)` callback to start importing helpers the * hoisted data implies, deduped across every instance on the page. */ export declare function usePreload(): PreloadFn;