mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 13:22:11 +03:00
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:
committed by
GitHub
parent
ec9c93fe29
commit
bd1bcb5aba
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user