Skip to content

Commit 6f7eb74

Browse files
committed
Reset hasCacheMismatch when rebuilding 'rows'
1 parent 6568b56 commit 6f7eb74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ function ComparePerformanceWithData(props: {
411411
[from, to],
412412
);
413413

414-
const hasCacheHitMismatch = useRef<boolean>(false);
414+
const hasCacheHitMismatch = useRef(false);
415415

416-
const rows = useMemo(
417-
() =>
418-
Array.from(nameSet)
416+
const rows = useMemo(() => {
417+
hasCacheHitMismatch.current = false;
418+
return Array.from(nameSet)
419419
.map((name) => {
420420
const before = from.getTupleCountInfo(name);
421421
const after = to.getTupleCountInfo(name);

0 commit comments

Comments
 (0)