diff --git a/nest_frontend/hooks/useAsyncEffect.js b/nest_frontend/hooks/useAsyncEffect.js deleted file mode 100644 index 7595c3b..0000000 --- a/nest_frontend/hooks/useAsyncEffect.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-disable */ -import { useEffect } from "react" - - -/** - * {@link useEffect}, but with an async effect. - * - * @warning Breaks `react-hooks/exaustive-deps`. - * - * @param effect - The async effect. - * @param deps - The dependencies of the hook. - */ -export default function useAsyncEffect(effect, deps) { - useEffect(() => { - effect() - }, [effect, ...deps]) -}