elastic / kibana

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

[Cloud Security] [Agentless] [Tech Debt] Remove useEffects from the useSetupTechnology hook #188136

Open opauloh opened 1 month ago

opauloh commented 1 month ago

Motivation

The useEffects on the useSetupTechnology hook is causing multiple updates for the setupTechnology hook in Fleet. Weshould also look at the other useEffects because there seems to be many renders for Agentless flow

It can be potentially improved by converting useEffects with imperative code into a more declarative approach (useCallback, useMemo), this ticket aims to improve readability and maintainability by removing the useEffects.

Definition of done

Out of scope

Related tasks/epics

elasticmachine commented 1 month ago

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)