@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
12 lines • 686 B
text/typescript
import type { UseCoordinatedFallbackResult } from "./types.mjs";
/**
* Called by a fallback (loading) component to optionally hoist data the full
* content will need and to signal that it mounted. Returns the parent->fallback
* `data` and whether this fallback's `CoordinatedLazy` is nested inside an
* outer, still-loading one. Generalizes `useCodeFallback`.
*
* Pass a memoized `hoistData` map; each entry is hoisted up to the swap, where
* it is folded into the consumer's `ready` decision and handed down to the full
* content via `useCoordinatedContent`.
*/
export declare function useCoordinatedFallback(hoistData?: Record<string, unknown>): UseCoordinatedFallbackResult;