Skip to content
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

Open
techied opened this issue May 17, 2024 · 0 comments
Open

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

techied opened this issue May 17, 2024 · 0 comments

Comments

@techied
Copy link

techied commented May 17, 2024

Describe the bug
When using the useDataTableColumns hook (as described in the Column Toggling Example), new columns added to the columns prop do not appear (in the table or in effectiveColumns) until resetColumnsOrder is called (or the local storage key ${key}-columns-order is cleared)

To Reproduce
Steps to reproduce the behavior:

  1. Copy the Column Toggling Example
  2. Load the page
  3. Add a column to the columns prop (one which has not been used before)
  4. Observe that the new column does not appear

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):

  • OS: macOS
  • Browser Chrome
  • Version 124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant