grokking deeply nested table data structure
I think i'm close but not getting any rows to render the values. I'm using the DataTable shadcn component.
I have this deeply nested object that comes back with all the data about a tables
fields: flat array of the columns
records: contains each record, the array of recordValue objects, which themselves have the details about the value and associated field and fieldType.
Not sure if the columns AND data structure basically have to be in the same 'shape'. I was having trouble finding any examples of tanstack table created dynamically

1 Reply
unwilling-turquoiseOP•16mo ago
ok i think this works better. thx god for gpt4 to help.
happy to hear any suggestions or if passing this kind of data to the table is a potential footgun