qiyu-lu opened a new pull request, #3339: URL: https://github.com/apache/rocketmq-dashboard/pull/3339
## Summary - Reload the current server-backed Topic page after a successful create. - Replace the local optimistic prepend with the authoritative page items and total. - Reuse the existing reload path without changing delete behavior. - Add a regression test covering the follow-up query, updated total, and server-returned row data. ## Why Creating a Topic only updated the in-memory rows. The header and pagination kept the stale server total until a manual page reload, and the local row could diverge from server ordering and pagination. ## Verification - RED: the new regression test failed before the fix because listTopicsPage was called once instead of twice. - npm test -- src/pages/instance/__tests__/TopicPage.test.tsx: 22 passed. - npm run lint: 0 errors, 10 existing warnings. - npm run build: passed. - Prettier check and git diff --check: passed. Fixes #3337 -- 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]
