0

I am migrating from React table V6 to @tanstack/react-table V8. I am able to migrate the basic functionality like sorting, filtering and column resizing etc.

Previously I was using "react-table-hoc-fixed-columns"(https://www.npmjs.com/package/react-table-hoc-fixed-columns) to fix certain columns.

I have spent large chunk of my time going through source code. Here are my findings:

  1. There is hook version of same hoc react-table-sticky for React-table version V7.
  2. I have also looked at the source code of this hook, but I am unable to find a way to inject the styling like react-table-sticky package do.

If someone encountered this problem or have any advice how can I make it work in @tanstack/react-table v8.

  • Does this answer your question? In v8, You can add `position: sticky` to the columns themselves that you want to be sticky: https://github.com/TanStack/table/issues/848#issuecomment-1248094092 – ionosphere May 25 '23 at 12:52
  • I am not able to work it out, Actually it is very complex code. – ghostman231111 May 26 '23 at 09:06

0 Answers0