From df9ec4e16e89aca810f29473bfeb9ae6c382e5a8 Mon Sep 17 00:00:00 2001 From: Patrick Naughton <80646+naughton@users.noreply.github.com> Date: Wed, 12 Aug 2026 17:11:37 -0700 Subject: [PATCH] fix(mantine-react-table): don't force manual row modes when data is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forcing manualFiltering/Grouping/Pagination/Sorting when `data` is empty drops the row-model factories and fns from the `features` option at construction time. table-core freezes \_rowModelFns (aggregationFns/ filterFns/sortFns) when the table is constructed, so any table that mounts before its async data arrives (data: [] on first render, rows later) permanently loses client-side grouping, sorting, and filtering — the options heal on re-render but the frozen registries never do. The check was a v2-era perf hack; running the row-model pipelines over zero rows costs nothing, so it can simply be removed. --- .../src/mantine-react-table/hooks/useMRT_TableOptions.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts b/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts index e45452e80c..c84355f3d4 100644 --- a/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts +++ b/examples/react/mantine-react-table/src/mantine-react-table/hooks/useMRT_TableOptions.ts @@ -171,12 +171,6 @@ export const useMRT_TableOptions: ( manualPagination = true } - if (!rest.data?.length) { - manualFiltering = true - manualGrouping = true - manualPagination = true - manualSorting = true - } return { aggregationFns,