Open maxime4000 opened 1 year ago
So I think my package/build/whatever cache was corrupt or something like that because it's now working perfectly and I have not made a single change to this, but I had problem with my whole local environment for the last 2 days...
Nevermind talk too soon...
Describe the bug
Using mostly the kitchen sink example with Styled-components and trpc/react-query to do useInfiniteQuery. So when the table is being rerender, the column sorting function will work, but when the table stop being rerender, those function stop working...
Your minimal, reproducible example
Will try to create a reproductible environment if necessary
Steps to reproduce
Tbh, other than maybe replicating the same setup as the
Expected behavior
OnClick={header.column.getToggleSortingHandler()} should be working even after rerender.
How often does this bug happen?
Every time
Screenshots or Videos
https://github.com/TanStack/table/assets/4070713/4d5fe021-57bf-4176-8c4b-a7ac11e45db1
Platform
Macos Chrome
react-table version
8.9.1
TypeScript version
5.0.4
Additional context
"@tanstack/react-query": "4.29.12", "@tanstack/react-query-devtools": "4.29.12", "react-virtual": "2.10.4",
"@trpc/client": "10.29.0", "@trpc/next": "10.29.0", "@trpc/react-query": "10.29.0", "@trpc/server": "10.29.0",
Terms & Code of Conduct