-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover][Main] Improve state related code #102028
[Discover][Main] Improve state related code #102028
Conversation
@elasticmachine merge upstream |
…com:kertal/kibana into kertal-pr-2021-06-14-discover-improve-state
Pinging @elastic/kibana-app (Team:KibanaApp) |
...ins/discover/public/application/apps/main/components/sidebar/discover_sidebar_responsive.tsx
Show resolved
Hide resolved
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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 in Chrome on Mac OSX, looks good. Great improvement!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @kertal |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
This PR further centralizes state management in Discover Main.
used_discover_state
hook, no more need forsearchSessionManager
herediscover:searchOnPageLoad
is set toOff
this now also works when switching index patterns (it started searching before this PR)discover_state.ts
useDiscoverState
hook now usesuseSearchSession
anduseSavedSearchData
hookChecklist
Delete any items that are not applicable to this PR.