Skip to content

Commit 5006f97

Browse files
authored
perf: Optimize dashboard grid components (#31240)
1 parent 24d001e commit 5006f97

File tree

10 files changed

+1018
-909
lines changed

10 files changed

+1018
-909
lines changed

superset-frontend/src/dashboard/components/gridComponents/Column.jsx

Lines changed: 198 additions & 182 deletions
Large diffs are not rendered by default.

superset-frontend/src/dashboard/components/gridComponents/DynamicComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { FC, Suspense } from 'react';
2020
import { DashboardComponentMetadata, JsonObject, t } from '@superset-ui/core';
2121
import backgroundStyleOptions from 'src/dashboard/util/backgroundStyleOptions';
2222
import cx from 'classnames';
23-
import { useSelector } from 'react-redux';
23+
import { shallowEqual, useSelector } from 'react-redux';
2424
import { Draggable } from '../dnd/DragDroppable';
2525
import { COLUMN_TYPE, ROW_TYPE } from '../../util/componentTypes';
2626
import WithPopoverMenu from '../menu/WithPopoverMenu';
@@ -103,6 +103,7 @@ const DynamicComponent: FC<FilterSummaryType> = ({
103103
nativeFilters,
104104
dataMask,
105105
}),
106+
shallowEqual,
106107
);
107108

108109
return (

0 commit comments

Comments
 (0)