Aias00 opened a new issue, #1090:
URL: https://github.com/apache/rocketmq-dashboard/issues/1090

   ## Problem
   
   The Broker Cluster page starts `loadData()` while rendering and its 
live-refresh switch only changes local state. The render-time state update 
violates the React lifecycle, while enabling the switch never requests updated 
cluster data.
   
   ## Scope
   
   Track 1 / Cluster and Broker operations.
   
   ## Proposed fix
   
   Move initial loading into an effect, schedule refreshes only while live 
refresh is enabled, clean up the timer on disable/unmount, and add regression 
tests for the initial and periodic fetch behavior.
   
   ## Evidence
   
   `web/src/pages/studio/BrokerCluster.tsx`: the `initialized` render guard 
invokes `void loadData()` during render; the Switch uses 
`onChange={setAutoRefresh}` without any timer or effect.


-- 
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