RockteMQ-AI commented on issue #2229: URL: https://github.com/apache/rocketmq-dashboard/issues/2229#issuecomment-5301297687
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the current codebase (`master` branch). **Root Cause:** In `frontend-new/src/pages/Producer/producer.jsx`, the `onFinish` function: 1. Does not clear `connectionList` before starting a new query, leaving stale results visible if the new query fails 2. Has no guard against duplicate submissions (no check of `loading` state before submitting) 3. Relies solely on React async loading state, allowing same-tick duplicate submissions **Impact:** Producer connection page UI — users may see stale data or trigger duplicate requests. **Severity:** Low — UI-only issue, no data corruption or backend impact. **Proposed fix:** Clear `connectionList` at the start of `onFinish`, add a `loading` guard to prevent duplicate submissions, and add UI tests for stale state and duplicate submission scenarios. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager* -- 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]
