mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add cleanup callbacks to some useEffect calls (#13444)
This commit is contained in:
@@ -225,6 +225,10 @@ export const useProxyLatency = (
|
||||
// Local storage cleanup
|
||||
garbageCollectStoredLatencies(proxies, maxStoredLatencies);
|
||||
});
|
||||
|
||||
return () => {
|
||||
observer.disconnect();
|
||||
};
|
||||
}, [proxies, latestFetchRequest, maxStoredLatencies]);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user