Convert resultSets to use useMemo

This commit is contained in:
Robert
2023-08-11 17:32:31 +01:00
parent 943a61b6a9
commit 8713a5403f

View File

@@ -242,7 +242,10 @@ export function ResultTables(props: ResultTablesProps) {
const offset = parsedResultSets.pageNumber * parsedResultSets.pageSize;
const resultSets = getResultSets(rawResultSets, interpretation);
const resultSets = useMemo(
() => getResultSets(rawResultSets, interpretation),
[interpretation, rawResultSets],
);
const resultSetNames = getResultSetNames(interpretation, parsedResultSets);
const resultSet = resultSets.find(