Skip to content

Commit

Permalink
recompute only on prop change
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya committed Nov 15, 2021
1 parent b015338 commit 6058831
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const EndpointHostIsolationStatus = memo<EndpointHostIsolationStatusProps
useEffect(() => {
wasReleasing.current = pendingIsolate === 0 && pendingUnIsolate > 0;
wasIsolating.current = pendingIsolate > 0 && pendingUnIsolate === 0;
});
}, [pendingIsolate, pendingUnIsolate]);

return useMemo(() => {
if (isPendingStatusDisabled) {
Expand Down

0 comments on commit 6058831

Please sign in to comment.