T
TanStack10mo ago
dependent-tan

How to pass external functions to Table Columns

Since tan-stack is saying to have a stable reference to the columns, how to pass external functions like state-setters to the columns, which in turn can be passed to the components used in cell and header properties. tried the hooks approach along with columnHelper (to get the correct types.). This resulted in more re-renders. something like
const columns = (setter) => [
......
]
const columns = (setter) => [
......
]
is acceptable? Or is there any approach?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?