Skip to main content

What it flags

useEffect(async () => ...): the promise the callback returns is treated as the cleanup function, so React warns, nothing is cleaned up and a rejection is unhandled.

How to review or fix

Declare an async function inside the effect and call it.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: