How to show a loading state inside a TanStack created DataTable while awaiting data in an async Server Component? #81303
Unanswered
nischalmainali21
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm building a table component using TanStack Table (React Table) in a Next.js 14+ app with the App Router. I'm using async Server Components, and I want to show a loading skeleton or state only for the table rows (not the entire table) while data is being fetched.
The only place where does work is where the is imported. But that replaces the entire table.
What I’m looking for:
A pattern or approach to render skeleton rows (with headers visible) while the data is being fetched.
Additional information
Beta Was this translation helpful? Give feedback.
All reactions