Vizzuality/landgriffon

View on GitHub
client/src/hooks/once/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useEffectOnceWhen } from 'rooks';

const useEffectOnce = (callback: () => void) => useEffectOnceWhen(callback, true);

export default useEffectOnce;