Skip to content

Commit f50d307

Browse files
[BUGFIX] Table: restore data transform memoization (#541)
Signed-off-by: Kevin Fischer <49786038+kevin-fischer@users.noreply.github.com>
1 parent 1599253 commit f50d307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

table/src/components/TablePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export function TablePanel({ contentDimensions, spec, queryResults }: TableProps
251251
}, [queryResults, queryMode, spec.columnSettings]);
252252

253253
// Transform will be applied by their orders on the original data
254-
const data = transformData(rawData, spec.transforms ?? []);
254+
const data = useMemo(() => transformData(rawData, spec.transforms ?? []), [rawData, spec.transforms]);
255255

256256
const keys: string[] = useMemo(() => {
257257
const result: string[] = [];

0 commit comments

Comments
 (0)