UNPKG

@ducor/hooks

Version:

A collection of useful React hooks for building modern web applications. Includes hooks for clipboard operations, window events, intervals, timeouts, and more.

12 lines (11 loc) 334 B
/** * `useProcessing` is a custom hook for handling processing states. * * @see Docs https://ui.ducor.net/hooks/use-processing */ export declare const useProcessing: (init?: boolean) => { finish: () => void; isLoading: boolean; start: () => void; }; export type UseProcessingReturn = ReturnType<typeof useProcessing>;