which is used for clean-up. It looks like you wrote useEffect(async () => …) or returned a Promise. Instead– category –

useEffectwhich is used for clean-up. It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead