Pregunta de entrevista de Swrve

How would you solve for race conditions with the useEffect React Hook API