Reset hasCacheMismatch when rebuilding 'rows'

This commit is contained in:
Asger F
2024-11-22 11:55:54 +01:00
parent 6568b569a1
commit 6f7eb74496

View File

@@ -411,11 +411,11 @@ function ComparePerformanceWithData(props: {
[from, to],
);
const hasCacheHitMismatch = useRef<boolean>(false);
const hasCacheHitMismatch = useRef(false);
const rows = useMemo(
() =>
Array.from(nameSet)
const rows = useMemo(() => {
hasCacheHitMismatch.current = false;
return Array.from(nameSet)
.map((name) => {
const before = from.getTupleCountInfo(name);
const after = to.getTupleCountInfo(name);