You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch the eui*Styles() calls to useEuiMemoizedStyles. The generator must be a static function of the theme. If it also takes another argument, keep that dynamic part outside the memoized function.
No changelog.
page_header_content.tsx already uses useEuiMemoizedStyles. These still call the generator directly:
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
I'd like to work on this. I'll use useEuiMemoizedStyles in the five listed components, including both style generators in PageSection. I'll leave PageHeaderContent and the existing styling and behavior unchanged. Does that scope sound right?
Activity
github-actions commentedon Oct 5, 2026
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
vianmangal commentedon Oct 9, 2026
I'd like to work on this. I'll use
useEuiMemoizedStylesin the five listed components, including both style generators in PageSection. I'll leave PageHeaderContent and the existing styling and behavior unchanged. Does that scope sound right?