UNPKG

react-when-ready

Version:

React tools for content readiness orchestration. Provides context providers, hooks and components to coordinate smooth transitions when async content becomes available

9 lines (8 loc) 315 B
/** * A specialized hook that reports readiness to a parent `ReadinessPendingProvider` * when a specific condition becomes true. * * @param condition - Boolean flag indicating when the consumer is considered ready * @returns void */ export declare const useReadinessOnCondition: (condition: boolean) => void;