Aias00 opened a new pull request, #1907:
URL: https://github.com/apache/rocketmq-dashboard/pull/1907

   ## Summary
   
   - add a shared visibility-aware polling hook for Studio runtime pages
   - skip scheduled Broker Cluster and Consumer Group refreshes while the 
document is hidden
   - refresh once when the document becomes visible again
   - remove timers and visibility listeners when polling is disabled or the 
page unmounts
   - keep Broker Cluster initial loading lint-compliant and suppress unmounted 
results
   - cover hidden, restored, interval, and disabled polling behavior on both 
pages
   
   ## Validation
   
   - `npx eslint src/hooks/useVisiblePolling.ts 
src/pages/studio/BrokerCluster.tsx src/pages/studio/GroupManagement.tsx 
src/pages/studio/__tests__/BrokerCluster.test.tsx 
src/pages/studio/__tests__/GroupManagement.test.tsx`
   - `npm test -- --run src/pages/studio/__tests__/BrokerCluster.test.tsx 
src/pages/studio/__tests__/GroupManagement.test.tsx` (26 tests passed)
   - `npm run build`
   
   Closes #1834
   
   Related: #1585
   


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