@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
14 lines • 828 B
text/typescript
import * as React from 'react';
import type { SettleGate } from "../useCoordinated/createSettleGate.mjs";
/**
* The ambient settle gate that a {@link CoordinatedLazy} swap registers with
* when it isn't given an explicit `gate` prop. A coordinator (e.g. the
* `useStream` controller) provides its gate here so every swap rendered beneath
* it reports into the same gate - that is how a group's `loading` reflects each
* piece's swap without threading a `gate` prop through every one. `null` outside
* any coordinator, in which case the swap registers only with the page-global
* gate.
*/
export declare const CoordinatedGateContext: React.Context<SettleGate | null>;
/** Read the ambient settle gate, or `null` when there is no surrounding coordinator. */
export declare function useCoordinatedGate(): SettleGate | null;