@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
8 lines (7 loc) • 307 B
TypeScript
/**
* 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;