UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

13 lines 534 B
import * as React from 'react'; /** * Scopes a cross-instance preload cache (typically at a layout). Descendants * call `usePreload` to start dynamic imports of shared helpers keyed by a * stable string; the first call per key runs the factory and every other * instance reuses its promise - so a helper a chunk's data implies (a transform * fn, say) is fetched once, in parallel with the content, across the page. */ export declare function PreloadProvider({ children }: { children: React.ReactNode; }): React.ReactElement;