Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Global Search] Instantly set `isLoading=true` w…
…hen search value changes (elastic#197750) (elastic#198090) # Backport This will backport the following commits from `main` to `8.x`: - [[Global Search] Instantly set `isLoading=true` when search value changes (elastic#197750)](elastic#197750) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Tim Sullivan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-28T20:35:17Z","message":"[Global Search] Instantly set `isLoading=true` when search value changes (elastic#197750)\n\n## Summary\r\n\r\nClose https://github.com/elastic/kibana/issues/77059\r\n\r\nThis PR solves the bug by setting the `isLoading` flag outside of the\r\nblock of debounced code whenever the search term changes.\r\n\r\nThis also makes a few slight cleanups to `search_bar.tsx`, which is\r\nquite large. I avoided doing any serious cleanups that would make the\r\ndiff hard to read or detract from the fix.","sha":"c378cd9186278d47d97ca7d328b4c666eb7a9df4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","backport:version","v8.17.0"],"title":"[Global Search] Instantly set `isLoading=true` when search value changes","number":197750,"url":"https://github.com/elastic/kibana/pull/197750","mergeCommit":{"message":"[Global Search] Instantly set `isLoading=true` when search value changes (elastic#197750)\n\n## Summary\r\n\r\nClose https://github.com/elastic/kibana/issues/77059\r\n\r\nThis PR solves the bug by setting the `isLoading` flag outside of the\r\nblock of debounced code whenever the search term changes.\r\n\r\nThis also makes a few slight cleanups to `search_bar.tsx`, which is\r\nquite large. I avoided doing any serious cleanups that would make the\r\ndiff hard to read or detract from the fix.","sha":"c378cd9186278d47d97ca7d328b4c666eb7a9df4"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197750","number":197750,"mergeCommit":{"message":"[Global Search] Instantly set `isLoading=true` when search value changes (elastic#197750)\n\n## Summary\r\n\r\nClose https://github.com/elastic/kibana/issues/77059\r\n\r\nThis PR solves the bug by setting the `isLoading` flag outside of the\r\nblock of debounced code whenever the search term changes.\r\n\r\nThis also makes a few slight cleanups to `search_bar.tsx`, which is\r\nquite large. I avoided doing any serious cleanups that would make the\r\ndiff hard to read or detract from the fix.","sha":"c378cd9186278d47d97ca7d328b4c666eb7a9df4"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Tim Sullivan <[email protected]>
- Loading branch information