Skip to content

[9.2] [SideNav] Warnings and slight initial render improvement (#239721)#240114

Merged
kibanamachine merged 2 commits into
elastic:9.2from
kibanamachine:backport/9.2/pr-239721
Oct 23, 2025
Merged

[9.2] [SideNav] Warnings and slight initial render improvement (#239721)#240114
kibanamachine merged 2 commits into
elastic:9.2from
kibanamachine:backport/9.2/pr-239721

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

)

## Summary

- warnings fixes:
  - warn about duplicate ids in nav mapper
  - fix duplicate icons warning when icon is not a string
  - do not warn in prod
- performance fixes:
  - mapper:
- prevent unnecessary renders by separate navlinks update. we're not
using them directly, so removed
- add debounceTime(0) to prevent unnecessary re-render where one
observable emits sync after another
 - ~nav (see videos before after)~
   - ~reduce re-renders when resizing~
- ~reduce height remeasures when items height isn't expected to change.
**helps with initial render in security**~
   - moving to a separate pr

~I think with this we can close
elastic#239331, because now tour in
security opens reliably and I don't see initial flash anymore~

(cherry picked from commit 1d87f15)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 22, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) October 22, 2025 14:42
@Dosant
Copy link
Copy Markdown
Contributor

Dosant commented Oct 23, 2025

@elasticmachine merge upstream

@kibanamachine kibanamachine merged commit 1271edb into elastic:9.2 Oct 23, 2025
12 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
core 132.7KB 130.0KB -2.7KB

History

cc @Dosant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants