TanStackT
TanStack11mo ago
1 reply
wealthy-blue

tableContainerRef is initially null so cannot use tanstack table on first render?

I am using server components to send the initial data to the client immediately. So the very first render of the component should be good to go. However a ref, such as the tableContainerRef used in much of the documentation is null on the first render and only an actual ref after the first render, meaning on the first render the table cannot have a body. What is the suggested fix for this?
Was this page helpful?