Replace KibanaServices
singleton with useKibana
hook
#173071
Labels
Team:Entity Analytics
Security Entity Analytics Team
In
/x-pack/plugins/security_solution/public/entity_analytics/api/api.ts
, the fetch calls should be updated to use theuseKibana
HookThis was originally pointed out here
This implies carefully restructuring the call sites, as there's no guarantees that they're all within hooks already.
For example, they could be called
onClick
event handlers or as part of thequeryFn
forreact-query
.https://github.com/tiansivive/kibana/blob/b18a7aeecf160ea4fd60892f6a1768b4466da6c4/x-pack/plugins/security_solution/public/entity_analytics/api/api.ts#L32
The text was updated successfully, but these errors were encountered: