UNPKG

@lyonph/preact-hooks

Version:

Collection of useful Preact Hooks

5 lines (4 loc) 259 B
import { ShouldUpdate } from './useDependencyChanged'; declare type AnyCallback = (...args: any[]) => any; export default function useConditionalCallback<T extends AnyCallback, R>(supplier: T, dependency: R, shouldUpdate?: ShouldUpdate<R>): T; export {};