youngkermit8-coder opened a new issue, #1577:
URL: https://github.com/apache/rocketmq-dashboard/issues/1577

   ## Description
   
   On the current `rocketmq-studio` branch (`bce4b10`), the Topic page starts 
in a loading state even when no RocketMQ instance exists. The page makes no 
Topic request and correctly disables write actions, but still renders an active 
table spinner for one timer tick.
   
   This also leaves the frontend suite with the known TopicPage regression 
noted in #1571.
   
   ## Steps to reproduce
   
   ```text
   cd web
   npm test -- src/pages/instance/__tests__/TopicPage.test.tsx
   ```
   
   The test `disables Topic writes until an instance is available` fails 
because `.ant-spin-spinning` is still present after the empty Topic state 
renders.
   
   ## Expected behavior
   
   When `listInstances` returns an empty list:
   
   - no Topic list request is sent;
   - import and create actions remain disabled;
   - the Topic table does not enter a loading state.
   
   ## Root cause
   
   #1535 deferred the no-instance reset in the Topic effect with 
`setTimeout(0)`, while the component still initializes `loading` to `true`. The 
empty state therefore renders before the deferred reset clears the spinner.
   
   The Topic loading state should start as inactive and be enabled only when a 
selected instance actually triggers `listTopics`.


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