UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

14 lines 625 B
import * as React from 'react'; import type { ChunkProviderProps } from "./types.mjs"; /** * Layout-level provider that supplies a client `StreamSource` to descendant * chunks, dynamically importing the loader module only when a chunk first needs * to load - so the loaders stay out of the initial bundle and are never * imported when chunks are precomputed/preloaded. The import promise is cached, * so many chunks share one fetch (mirrors how `CodeProvider` lazily provides * its parser/loaders). */ export declare function ChunkProvider<P, O>({ children, source }: ChunkProviderProps<P, O>): React.ReactElement;