elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

[Security Solution][Threat Hunting] Memoize all components #178477

Open semd opened 3 months ago

semd commented 3 months ago

Summary

Research, identify, and fix all the components in Security Solution Threat hunting that are not memorized correctly.

All components should be wrapped by React.memo. Reference: https://attardi.org/why-we-memo-all-the-things/

elasticmachine commented 3 months ago

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

kqualters-elastic commented 3 months ago

Another reference: https://react-unforget.vercel.app/ this is going to happen at some point anyway, benefits outweigh the overhead, especially on larger projects.