chore: add cleanup callbacks to some useEffect calls (#13444)

This commit is contained in:
Kayla Washburn-Love
2024-06-04 12:18:03 -06:00
committed by GitHub
parent 213848e2e3
commit 0ea89a3d41
4 changed files with 29 additions and 10 deletions
+4
View File
@@ -225,6 +225,10 @@ export const useProxyLatency = (
// Local storage cleanup
garbageCollectStoredLatencies(proxies, maxStoredLatencies);
});
return () => {
observer.disconnect();
};
}, [proxies, latestFetchRequest, maxStoredLatencies]);
return {