T
TanStack3y ago
rival-black

Struggle to build filter outside the table with setFilter.

I am trying to hook up a few selects outside the table and when I try to pass the table to my component, the table itself doesn't have setFilter on it. I am referencing some examples like: https://codesandbox.io/s/react-table-filter-outside-table-bor4f?file=/package.json:296-307 and https://github.com/TanStack/table/discussions/2181 but I am struggling to make it work... "@tanstack/react-table": "^8.5.11" this is the version that I am on. Any tips are appreciated.
HermanNygaard
CodeSandbox
react-table filter outside table - CodeSandbox
react-table filter outside table by HermanNygaard using namor, react, react-dom, react-scripts, react-table, styled-components
GitHub
Is it possible to move the filtering outside the Table component? ·...
I would like to move the filtering to a parent component and use Table as a child. I saw that this is possible in react-table v6. Was wondering if the same is possible in react-table 7?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?