source: imaps-frontend/node_modules/react-use/esm/useCustomCompareEffect.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 353 bytes
RevLine 
[d565449]1import { DependencyList, EffectCallback } from 'react';
2declare type DepsEqualFnType<TDeps extends DependencyList> = (prevDeps: TDeps, nextDeps: TDeps) => boolean;
3declare const useCustomCompareEffect: <TDeps extends DependencyList>(effect: EffectCallback, deps: TDeps, depsEqual: DepsEqualFnType<TDeps>) => void;
4export default useCustomCompareEffect;
Note: See TracBrowser for help on using the repository browser.