UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

10 lines 556 B
import * as React from 'react'; import type { ChunkContextValue } from "./types.mjs"; /** * Supplies the lazily-resolved client `StreamSource` to descendant chunks. * `undefined` outside a `ChunkProvider` - a chunk then relies on its own config * source (or stays in its loading/preloaded state). */ export declare const ChunkContext: React.Context<ChunkContextValue<unknown, unknown> | undefined>; /** Read the surrounding `ChunkProvider`, or `undefined` when there is none. */ export declare function useChunkContext(): ChunkContextValue | undefined;