Răsfoiți Sursa

Fix for race condition on quering stacks

jnfrati 3 ani în urmă
părinte
comite
144d2dbb07

+ 4 - 0
dashboard/src/main/home/cluster-dashboard/stacks/_StackList.tsx

@@ -80,6 +80,10 @@ const StackList = ({ namespace }: { namespace: string }) => {
           setIsLoading(false);
         }
       });
+
+    return () => {
+      isSubscribed = false;
+    };
   }, [namespace]);
 
   if (isLoading) {