@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
14 lines (13 loc) • 612 B
TypeScript
import * as React from "react";
//#region src/utils/effect.d.ts
declare const useSafeLayoutEffect: typeof React.useEffect;
declare function useUnmountEffect(callback: () => void): void;
/**
* `useUpdateEffect` is a custom hook that skips side effects on the initial render, and only runs them when the dependency array changes.
*
* @see https://yamada-ui.com/docs/hooks/use-update-effect
*/
declare function useUpdateEffect(callback: React.EffectCallback, deps: React.DependencyList): void;
//#endregion
export { useSafeLayoutEffect, useUnmountEffect, useUpdateEffect };
//# sourceMappingURL=effect.d.ts.map