Skip to content

The table is re-rendering and displaying in debug mode with ⏱ 0 / 0 ms for getFilteredRowModel. This keeps logging every millisecond. #5866

Open
@GAjay

Description

TanStack Table version

8.20.6

Framework/Library version

18.3.1

Describe the bug and the steps to reproduce it

With the code mentioned below, I observed that my component is rendering multiple times without any reference or other changes. The rendering is happening continuously.
`const memoizedColumns = React.useMemo(() => UserFields, []);
const memoizedData = React.useMemo(() => {
console.log("refe");
return data;
}, [data]);
const [columnFilters, setColumnFilters] = React.useState(
[]
);

const [sorting, setSorting] = React.useState([]);
const table = useReactTable({
data: memoizedData,
columns: memoizedColumns,
state: {
columnFilters,
sorting,
},
onSortingChange: setSorting,
onColumnFiltersChange: setColumnFilters,
getCoreRowModel: getCoreRowModel(),
getFilteredRowModel: useMemo(() => getFilteredRowModel(), []), //client-side filtering
getSortedRowModel: getSortedRowModel(),
getPaginationRowModel: getPaginationRowModel(),
getFacetedRowModel: getFacetedRowModel(), // client-side faceting
getFacetedUniqueValues: getFacetedUniqueValues(), // generate unique values for select filter/autocomplete
getFacetedMinMaxValues: getFacetedMinMaxValues(),
autoResetPageIndex: false,
autoResetExpanded: false, // generate min/max values for range filter
debugTable: true,
debugCells: true,
// debugHeaders: true,
// debugColumns: false,
});`

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

no

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions