UNPKG

@excentone/spfx-react

Version:

Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.

12 lines (11 loc) 618 B
import { DependencyList, EffectCallback } from "react"; /** * Accepts a function that contains imperative, possibly effectful code, but with applied timeout before executing the effect. * * @param effect Imperative function that can return a cleanup function * @param timeout The timeout before executing the effect callback. * @param deps If present, effect will only activate if the values in the list change. * * @remarks This is really just a wrapper to the React's `useEffect` callback. */ export declare const useDebouncedEffect: (effect: EffectCallback, timeout: number, deps?: DependencyList) => void;