Skip to content

Commit 0f41733

Browse files
committed
release v2 beta 3 - fix accessorFns
1 parent e6bc3f9 commit 0f41733

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

packages/mantine-react-table/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.0-beta.2",
2+
"version": "2.0.0-beta.3",
33
"license": "MIT",
44
"name": "mantine-react-table",
55
"description": "A fully featured Mantine implementation of TanStack React Table V8, written from the ground up in TypeScript.",

packages/mantine-react-table/src/utils/column.utils.ts

-8
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ export const prepareColumns = <TData extends MRT_RowData>({
9090
...columnDef,
9191
};
9292
}
93-
if (columnDef?.accessorFn !== undefined) {
94-
// If there is an accessorFn defined, make sure not to call it if the table is loading
95-
const originalAccessorFn = columnDef.accessorFn;
96-
columnDef.accessorFn = (...args) =>
97-
!tableOptions?.state?.isLoading && !tableOptions?.state?.showSkeletons
98-
? originalAccessorFn(...args)
99-
: undefined;
100-
}
10193
return columnDef;
10294
}) as MRT_DefinedColumnDef<TData>[];
10395
};

0 commit comments

Comments
 (0)