bito-code-review[bot] commented on PR #41937: URL: https://github.com/apache/superset/pull/41937#issuecomment-4937944248
<!-- Bito Reply --> The flagged race condition is correct. When multiple requests are triggered (e.g., rapid reloads or concurrent auto-fetches), the lack of request cancellation or a request-id guard allows earlier, stale responses to overwrite the state and prematurely hide the loading spinner. To resolve this, you should implement an `AbortController` to cancel previous requests or use a request-id guard to ignore responses from outdated requests. Since the source file is not available in the current environment, I cannot provide a specific code implementation, but the standard approach is to instantiate an `AbortController` in the effect or handler and call `abort()` before initiating a new request. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
