yuluo-yx opened a new pull request, #2707: URL: https://github.com/apache/rocketmq-dashboard/pull/2707
## Problem Two login submit events in the same React render could both call the authentication API because loading state was not yet visible to the second handler. ## Changes - synchronously own the in-flight login request with a ref - ignore duplicate submits while the request is pending - release ownership after failure so a later retry remains available ## Local verification - `npm test -- --run src/pages/login/index.test.tsx` — 1 file, 4 tests passed - targeted ESLint passed - targeted Prettier check passed - `git diff --check` - PR scope check: 55 changed lines, 2 files, 1 commit No containers, full E2E suite, full repository build, or remote workflow was started manually. Fixes #2702 -- 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]
