-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New columns don't appear when added to useDataTableColumns
#596
Comments
Bump. I'm running into this same issue |
Thanks for raising the issue. |
@nicobermudez Thank you for reporting. I'll try to replicate that and investigate |
I have same issue! wating for @gfazioli pull request will merge to update mantine datatable. |
PR ready, waiting for @icflorescu approval/merge/release |
New columns don't appear when added to useDataTableColumns #596
Thanks a lot for taking the time, @gfazioli, you're a star! |
Thank you @gfazioli ! |
Thank you for the work on this! Will really help us next few weeks 👍 |
Hi @gfazioli , just got around to testing this and it seems like columns are appearing as intended, although the order of the columns passed in to My use case does not require column ordering I wonder if these 2 separate concerns (toggling columns and ordering columns) would be better served by 2 separate hooks? That way the complexity could be reduced |
Sorry everyone, this issue is now reopened due to a different regression introduced by the fix. Hopefully @gfazioli or someone else will be able to come up with a new solution soon. For the benefit of the project/community, I'd be more than grateful for any help maintaining this project over the next couple of weeks 😫🙏 |
If I have time, I can also take a look at the issue if @gfazioli or @icflorescu do not have the time. |
|
Thanks again, @gfazioli! Your PR was released in Please make your PRs against the Thank you all! I'll close thisfor now, please feel free to reopen and come up with PRs if necessary. |
@icflorescu |
Describe the bug
When using the
useDataTableColumns
hook (as described in the Column Toggling Example), new columns added to thecolumns
prop do not appear (in the table or ineffectiveColumns
) untilresetColumnsOrder
is called (or the local storage key${key}-columns-order
is cleared)To Reproduce
Steps to reproduce the behavior:
Expected behavior
The column should appear
Screenshots
Happy to provide a screen recording if helpful in reproducing the issue
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: