Execute useEffect but asynchronously
import { useAsyncEffect } from "@atomico/hooks/use-async-effect";
useAsyncEffect(async () => { await fetch("..."); });
Last updated 2 years ago