dashboard-react
    Preparing search index...

    Function useClusterState

    • Polls /state and exposes a normalized view of the cluster.

      Backed by RTK Query under the hood — components calling this share a single cache entry, so opening multiple topology surfaces doesn't fan out into multiple HTTP requests. Polling is driven by RTK Query's pollingInterval.

      connected flips false after CONNECTION_LOST_THRESHOLD consecutive failures so the dashboard's connection indicator doesn't oscillate on a single bad poll.

      Returns ClusterState