Why React useEffect is not unmounting a year ago 1 min read reactjsuseeffect Recently I faced a problem where my useEffect is not triggering the unmount code which is the return function. Reason is that there was an async call for some stupid reason.