From 8ddc11458b0f52d7a96f673f061d60c63cb7b24a Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 20 Nov 2023 16:20:38 -0500 Subject: [PATCH] fix: convert organize columns component to purecomponent (#1653) Minor drop in the bucket against #1650, reduces at least some of the re-rendering. --- .../visibility-ordering-builder/VisibilityOrderingBuilder.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/iris-grid/src/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.tsx b/packages/iris-grid/src/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.tsx index 6940aca126..70009a0af5 100644 --- a/packages/iris-grid/src/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.tsx +++ b/packages/iris-grid/src/sidebar/visibility-ordering-builder/VisibilityOrderingBuilder.tsx @@ -1,4 +1,4 @@ -import React, { ChangeEvent, Component, ReactElement } from 'react'; +import React, { ChangeEvent, PureComponent, ReactElement } from 'react'; import classNames from 'classnames'; import { GridUtils, @@ -71,7 +71,7 @@ interface VisibilityOrderingBuilderState { searchFilter: string; } -class VisibilityOrderingBuilder extends Component< +class VisibilityOrderingBuilder extends PureComponent< VisibilityOrderingBuilderProps, VisibilityOrderingBuilderState > {