fix(FE): fix the timestamp reduction issue when attempting to reduce the timestamp via drag #6435
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix: Timestamp Update on Zoom for Graph Data Refresh
Description
This PR resolves an issue with the timestamp update on zoom for graph data in the application. Previously, when attempting to zoom in on the graph by dragging, the
timeRange
was not included in therequestedData
, causing theuseMemo
hook to recognize therequestedData
as unchanged. As a result, the post-request function to fetch new data was not triggered, and the graph failed to refresh. The graph data would only update when the timestamp was manually adjusted from the dropdown selection.Changes Made
timeRange
to therequestedData
when zooming in on the graph.Issue
Testing
timeRange
inrequestedData
.Screenshot
Screen.Recording.2024-11-13.at.5.mp4
Notes
This fix will improve the responsiveness of the graph by ensuring real-time data updates on zoom, providing a more seamless user experience.
Important
Fixes graph data refresh issue on zoom by adding
timeRange
torequestedData
inNewWidget
.timeRange
torequestedData
inNewWidget
.useMemo
triggers data re-fetch on zoom by includingminTime
andmaxTime
.timeRange
is included inrequestedData
on zoom.This description was created by for b177594. It will automatically update as commits are pushed.