[Infra UI] Plugin registrations pull in UI components too eagerly #122941
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Logs UI
Logs UI feature
Feature:Metrics UI
Metrics UI feature
performance
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
📓 Summary
The
infra
plugin's registration imports too many chunks eagerly.Kibana version:
master
as of c9dcd93👣 Steps to reproduce
infra.chunk.N.js
bundles are loaded.✔️ Acceptance criteria
infra.plugin.js
bundle is loaded before navigating to theLogs
orMetrics
app (in particular not on the login screen).💡 Implementation hints
This has happened in the past when importing all related UI components for rule registration without wrapping the rule parameterization components in a
React.lazy
wrapper (see #117187 for amonitoring
plugin example). For theinfra
plugin this was working fine until recently. Maybe a recent change in the plugin initialization caused this for theinfra
plugin (e.g. #119557).The text was updated successfully, but these errors were encountered: