fix(dashboard): remove dead unconditional useLiveRequests call in HomePageClient (#4759, #4745, #4596) (#4761)

Co-authored-by: Diego Rodrigues de Sa e Souza <souzamiriamrodrigues790@gmail.com>
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-06-23 08:22:42 -03:00
committed by GitHub
parent ec9c93fe29
commit bd1bcb5aba
3 changed files with 61 additions and 2 deletions

View File

@@ -114,8 +114,11 @@ export default function HomePageClient({ machineId }: HomePageClientProps) {
Array<{ id?: string; prefix?: string; name?: string }>
>([]);
// Live in-flight requests for Provider Topology pulse animation (#3507)
const { activeRequests: liveActiveRequests } = useLiveRequests();
// The live in-flight request feed for the Provider Topology pulse animation is owned by
// <HomeProviderTopologySection>, which subscribes to it (gated by the `enabled` prop)
// only when the topology is actually shown. HomePageClient must NOT open its own
// unconditional live socket: the binding here was unused (ReferenceError in prod,
// #4759/#4745) and the socket opened even when topology was hidden (#4596).
const [versionInfo, setVersionInfo] = useState<VersionInfo | null>(null);
const [updating, setUpdating] = useState(false);