For the complete documentation index, see llms.txt. This page is also available as Markdown.

use-async-effect

Execute useEffect but asynchronously

Modulo

import { useAsyncEffect } from "@atomico/hooks/use-async-effect";

Syntax

useAsyncEffect(async () => {
  await fetch("...");
});

Last updated

Was this helpful?