소스 검색

Fix for race condition on quering stacks

jnfrati 4 년 전
부모
커밋
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) {