coder999o opened a new pull request, #2575: URL: https://github.com/apache/rocketmq-dashboard/pull/2575
## What is the purpose of the change Prevent stale Queue browser responses from overwriting the current view after the user switches Topic or instance, or starts a newer queue load. Before this change, an older queue-load or offset-pull request could resolve after the selection changed and repopulate queues or message details from the previous context. ## Brief changelog - Invalidate pending Queue browser requests when the selected instance or Topic changes. - Ignore stale queue-load and offset-pull success/failure results after a newer request takes ownership. - Clear queue offsets, pulled entries, loading and pulling state for the new context. - Add regression tests for stale queue-load and stale pull responses. ## Verifying this change - `npm test -- --run src/components/__tests__/QueueBrowser.test.tsx` - `npm run lint` - `git diff --check` - `npm run build` -- 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]
