فهرست منبع

Fix for race condition on quering stacks

jnfrati 3 سال پیش
والد
کامیت
144d2dbb07
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      dashboard/src/main/home/cluster-dashboard/stacks/_StackList.tsx

+ 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) {