import { useEffect } from "react";
export default function useEffectIf(effect, depsToCheck) {
    useEffect(() => {
        const someUndefined = depsToCheck.some((dep) => !dep);
        if (!someUndefined)
            return effect();
    }, depsToCheck);
}
//# sourceMappingURL=useEffectIf.js.map