From 0f417330a6912a6684e257804624fb01b063dd9c Mon Sep 17 00:00:00 2001 From: Kevin Vandy Date: Sun, 12 May 2024 14:39:02 -0500 Subject: [PATCH] release v2 beta 3 - fix accessorFns --- packages/mantine-react-table/package.json | 2 +- packages/mantine-react-table/src/utils/column.utils.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/mantine-react-table/package.json b/packages/mantine-react-table/package.json index 421d0577e..0f6a3bfd7 100644 --- a/packages/mantine-react-table/package.json +++ b/packages/mantine-react-table/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-beta.2", + "version": "2.0.0-beta.3", "license": "MIT", "name": "mantine-react-table", "description": "A fully featured Mantine implementation of TanStack React Table V8, written from the ground up in TypeScript.", diff --git a/packages/mantine-react-table/src/utils/column.utils.ts b/packages/mantine-react-table/src/utils/column.utils.ts index 8e94e8f86..fc451d137 100644 --- a/packages/mantine-react-table/src/utils/column.utils.ts +++ b/packages/mantine-react-table/src/utils/column.utils.ts @@ -90,14 +90,6 @@ export const prepareColumns = ({ ...columnDef, }; } - if (columnDef?.accessorFn !== undefined) { - // If there is an accessorFn defined, make sure not to call it if the table is loading - const originalAccessorFn = columnDef.accessorFn; - columnDef.accessorFn = (...args) => - !tableOptions?.state?.isLoading && !tableOptions?.state?.showSkeletons - ? originalAccessorFn(...args) - : undefined; - } return columnDef; }) as MRT_DefinedColumnDef[]; };