diff --git a/reactgrid/lib/components/CellContext.tsx b/reactgrid/lib/components/CellContext.tsx index 2efff140..4a4bada7 100644 --- a/reactgrid/lib/components/CellContext.tsx +++ b/reactgrid/lib/components/CellContext.tsx @@ -1,7 +1,6 @@ import { createContext, memo, useContext } from "react"; import { Cell, CellContextType } from "../types/PublicModel"; import { StickyOffsets } from "../types/InternalModel"; -import { deepCompare } from "../utils/deepCompare"; interface CellContextProviderProps { rowIndex: number; @@ -79,7 +78,7 @@ export const CellContextProvider = memo( (prev, next) => { return ( !next.shouldRenderReorderedCells && - deepCompare(prev.cell, next.cell) && + prev.cell === next.cell && prev.isSelected === next.isSelected && prev.isFocused === next.isFocused && prev.getCellOffset === next.getCellOffset diff --git a/reactgrid/package.json b/reactgrid/package.json index ba966e7c..33b87ccb 100644 --- a/reactgrid/package.json +++ b/reactgrid/package.json @@ -1,6 +1,6 @@ { "name": "@silevis/reactgrid", - "version": "5.0.0-alpha.10", + "version": "5.0.0-alpha.11", "type": "module", "main": "dist/main.js", "types": "dist/main.d.ts",