Skip to content

Commit

Permalink
react memo to prevent over-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Nov 6, 2024
1 parent 31be19a commit 6f5acad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/components/FilterableTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import _JSONbig from 'json-bigint';
import { useEffect, useRef, useState, useMemo } from 'react';
import { useEffect, useRef, useState, useMemo, memo } from 'react';
import { getMultipleTextDimensions, styled } from '@superset-ui/core';
import { useDebounceValue } from 'src/hooks/useDebounceValue';
import { useCellContentParser } from './useCellContentParser';
Expand Down Expand Up @@ -272,4 +272,4 @@ const FilterableTable = ({
);
};

export default FilterableTable;
export default memo(FilterableTable);

0 comments on commit 6f5acad

Please sign in to comment.