I saw many times an useRef of AbortController to abort axios request, what is the meaning of this? Why is so important? This is an example i found in useEffect hook:
abortControllerRef.current?.abort();
};
Cancelling stale requests instead of leaving them hanging around in memory will save some browser resources used for:
Promise-handling businessIt is a good practice & there's no good alternative at the moment