File: frontend/src/App.jsx
withTimeout races a setTimeout rejection against the axios call, but when the timeout fires the axios request continues running in the background, consuming bandwidth and potentially resolving after the user has already seen an error. Pass an AbortController signal to axios and abort it when the timeout fires.
File:
frontend/src/App.jsxwithTimeoutraces asetTimeoutrejection against the axios call, but when the timeout fires the axios request continues running in the background, consuming bandwidth and potentially resolving after the user has already seen an error. Pass anAbortControllersignal to axios and abort it when the timeout fires.