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

Fixes bug where DataTable component throws error when underlying columns in data change #2827

Open
wants to merge 7 commits into
base: next
Choose a base branch
from

Conversation

jantaks
Copy link

@jantaks jantaks commented Nov 21, 2024

Background:

I wanted to create a DataTable for the result of a PIVOT operation when i found that this component could not deal with the underlying column IDs changing.

The issue is caused by 2 pieces of state (columns and columSummary) that are not updated in the correct sequence during the rendering process.

See storybook: /story/viz-datatable--reactive-datatable

Before:

before

After:

after

Checklist

  • For UI or styling changes, I have added a screenshot or gif showing before & after
  • I have added a changeset
  • I have added to the docs where applicable
  • I have added to the VS Code extension where applicable

@zachstence
Copy link
Member

Looks like some of the DataTable stories are encountering an error when building Storybook
image

Copy link
Member

@zachstence zachstence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jantaks, seems like there's still an issue with the DataTable. Our base-path and prerender E2E tests are failing. I pulled down your branch and tried to run e2e/base-path and when I go to the /table-row-links page, everything freezes. Seems like there's some infinite reactivity update happening.

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

Successfully merging this pull request may close these issues.

3 participants