infinite-table / infinite-react

The modern React DataGrid for building apps — faster
https://infinite-table.com
73 stars 5 forks source link

Allow using hooks in column.render and column.header functions #60

Closed roblotter closed 2 years ago

roblotter commented 2 years ago

We should allow using hooks inside those functions.

roblotter commented 2 years ago

It's just been implemented.

In column cells, you can use hooks now, and also use useInfiniteColumnCell hook to retrieve the params of the column.render function.

In header cells, you can use hooks now, and also use useInfiniteHeaderCell hook to retrieve the params of the column.header function.