icflorescu / mantine-datatable

The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
https://icflorescu.github.io/mantine-datatable/
MIT License
949 stars 68 forks source link

New columns don't appear when added to useDataTableColumns #596 #603

Closed gfazioli closed 5 months ago

gfazioli commented 5 months ago

@icflorescu I have found a solution to allow for the runtime modification of columns. Whether a new one is added or a previous one is deleted. I would say I am not entirely satisfied with the solution I have implemented. It is working at the moment, but upon thinking about it a bit more, perhaps we can improve it.

btw, I open this PR and await your feedback.

codesandbox[bot] commented 5 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview