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

fix dynamic data updates in the Lit Table Adapter #5884

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

lschierer
Copy link
Contributor

this fixes an issue I discussed in discord where with the lit table
adapter, updating a data array did not get reflected by the table.

It is a one-line change to the TableController, and a new example that demonstrates the difference.

adapter, updating a data array did not get reflected by the table.

It is a one-line change to the TableController, and a new example that
demonstrates the difference.
@KevinVandy
Copy link
Member

@kadoshms We've had problems in the Lit adapter with data not being reactive. This fixes it. Wonder if we need to make more/all table options reactive? Maybe at least columns too?

@lschierer
Copy link
Contributor Author

I'm fairly sure making the columns reactive is a similar one line fix, but I didn't test that. I didn't need it.

@lschierer
Copy link
Contributor Author

and many thanks to @KevinVandy for walking me through this.

@kadoshms
Copy link
Contributor

kadoshms commented Jan 26, 2025

LGTM

As suggested - this is true for columns as well, good catch 👍

per suggestion from @kadoshms

Co-authored-by: Mor Kadosh <[email protected]>
@KevinVandy KevinVandy merged commit 9763877 into TanStack:main Jan 27, 2025
@lschierer lschierer deleted the feat-lit-dynamic-data branch January 27, 2025 19:13
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