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
12 lines (11 loc) • 397 B
TypeScript
/**
* Hook that enables a component to participate in a readiness tracking system.
*
* Manages component's lifecycle within the readiness context by:
* - Automatically registering on mount
* - Cleaning up on unmount
* - Providing a ready-state reporter function
*
* @returns A memoized callback function to report readiness
*/
export declare const useReadinessReporter: () => () => void;