RockteMQ-AI commented on issue #1093:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/1093#issuecomment-5208079461

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the described code.
   
   **Root Cause:** The auto-refresh Switch in `GroupManagement.tsx` only 
toggles local state (`setAutoRefresh`) without triggering any data fetch. 
Additionally, the initial effect and `handleRefresh` independently update 
`groups`, allowing race conditions where stale responses overwrite newer data.
   
   **Impact:** Consumer Group Management page — auto-refresh is non-functional, 
and manual refreshes may display outdated data.
   
   **Severity:** medium
   
   **Proposed Fix Direction:** Introduce a single list refresh coordinator that:
   1. Owns all loading and result updates
   2. Polls only while auto-refresh is enabled
   3. Cleans up timers on disable/unmount
   4. Ignores obsolete responses (request cancellation or generation counter)
   
   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]

Reply via email to