import { Arity1 } from '@typed/lambda' ; import { HookEffects } from './types' ; import { useMemo } from './useMemo' ; export function * useCallback < A , B > ( fn , deps ) { return yield * useMemo ( ( _ ) => fn , deps ) ; }