jokerzsd opened a new pull request, #4197: URL: https://github.com/apache/rocketmq-dashboard/pull/4197
## Summary Fix the Metrics Explorer silently reverting to the 1h window when the dashboard switches instances. ## Problem On the home dashboard, `MetricsExplorer` stays mounted while the instance selector changes. When `instanceId` changes, the profile-loading effect re-runs and reloads every panel, but hardcoded `RANGE_OPTIONS[0]` (1h) instead of the currently selected range. The charts then showed one hour of data while the Segmented control still displayed the user's selection. ## Fix Track the selected range in a ref and reuse it when the effect reloads panels after an instance change, so the reload honors the current selection. ## Test plan `cd web && npx tsc -b` passes. Fixes #4188 -- 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]
