You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(
[]
);
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.
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: