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

   ## Problem
   
   The current `rocketmq-studio` branch fails `npm run lint` with five 
`react-hooks/set-state-in-effect` errors:
   
   - `web/src/pages/cluster/clients.tsx`: instance loading state is updated 
synchronously inside an effect.
   - `web/src/pages/instance/consumer.tsx`: instance-scoped modal/list state is 
reset synchronously inside effects.
   - `web/src/pages/instance/dlq.tsx`: instance-scoped retry/list state is 
reset synchronously inside an effect.
   
   These errors make the frontend lint gate fail even though the affected 
effects already perform asynchronous data loading.
   
   ## Expected behavior
   
   - `npm run lint` completes without errors.
   - Instance-scoped state is still cleared before the corresponding 
asynchronous load publishes data.
   - Effect cleanup continues to cancel scheduled work and suppress stale 
request completions.
   - Existing Clients, Consumer, and DLQ page behavior remains covered by their 
tests.
   
   ## Scope
   
   Frontend-only lifecycle cleanup in the three affected pages. No API or 
backend behavior changes.
   
   ## Track
   
   Track 1 / Studio build quality and diagnostics reliability.


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