[Infrastructure UI] Alerts hook trigger snapshot API unnecessarily #152544
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Metrics UI
Metrics UI feature
Feature:ObsHosts
Hosts feature within Observability
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
📓 Summary
The
useAlertsQuery
hook is wrongly importing the hook implementation of the HostView context instead of the provided context hook.This results in rebuilding the snapshot query and performing twice the
/snapshot
request unnecessarily.✔️ Acceptance criteria
Import correctly the context hook and verify the
/snapshot
request is performed once on each search.The text was updated successfully, but these errors were encountered: