UNPKG

@rbxts/pretty-react-hooks

Version:
8 lines (7 loc) 307 B
/** * Runs a callback when the component is re-rendered. Does not run on the * first render. * @param effect The callback to run. * @param dependencies The dependencies to watch for changes. */ export declare function useUpdateEffect(effect: () => (() => void) | void, dependencies?: unknown[]): void;