tju-yxq opened a new pull request, #2594: URL: https://github.com/apache/rocketmq-dashboard/pull/2594
Closes #2593 ## Summary - sequence registry discovery with a request-generation ref - sequence NameServer connection queries with a separate request-generation ref - ignore stale registry and connection success, error, and loading updates - enter loading state when a connection request starts, without synchronous setState in the effect body - keep existing retry, NameServer switching, statistics, CSV export, and detail dialog behavior ## Why Each effect previously used an independent local `cancelled` flag. That only prevented updates after unmount; it did not distinguish an older in-flight request from the latest one. A slow registry response could overwrite newer retry data, and a slow connection response could replace the connections for a newly selected NameServer. ## Tests - focused: `ClientsPage.test.tsx` — 15 tests passed - `npm run lint -- --quiet`: 0 errors, 2 pre-existing warnings - `npm run build`: passed - `git diff --check`: passed Production changes: 24 additions / 20 deletions. The full PR is 92 additions / 21 deletions. This is a genuine correctness fix, but production changed lines are below the separate 100-line target, so the tracking ledger records it as a candidate rather than a complete group. -- 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]
