Table Reactiveness
Hi, I am writing a data table using Tan Stack Table within a Next.js application. The problem I am having is with having the table react to a deletion of a row or multiple rows, or understanding how to do this properly rather.
The initial data that populates the table is retrieved in a server component and then passed down to the table (client component) as a prop.
I have a useState variable created, which when the component is mounted, is set to the data passed from the server as a prop. Is the right thing to do to make a request for the data from the server and set the data accordingly?
Thanks in advance!
0 Replies