4 ms·I usually use an IIFE to encapsulate the async block inside the useEffect. Works like a charm!by zebnyc 5y agoI usually use an IIFE to encapsulate the async block inside the useEffect. Works like a charm!