-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Fix the browser's history navigation #80902
[ML] Fix the browser's history navigation #80902
Conversation
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested (Chrome and FF) and LGTM.
At most it takes me two Back button clicks to get back to the Jobs List or Overview page from the Anomaly Explorer or Single Metric Viewer.
💚 Build SucceededMetrics [docs]async chunks size
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great finds and cleanup!! Code and local test LGTM.
* [ML] fix data picker and refresh state * [ML] fix default pause value * [ML] fix jest test * [ML] global state as a source of truth for refreshInterval
Summary
Fixes regressions introduced by several PRs during 7.10, where it was no longer possible to return to the previous page in the browser's history by using the Back button.
Some highlights:
value: 0
withpause:false
. It was causing invoking the callback in a loop in some cases.DatePickerWrapper
introduced collision of states and led to loop updatestimefilter
service were producing some unnecessary states updateRelated #73261.
Checklist