Tanstack tables giving errors during deployment on vercel?

Does anybody know how to interpret these errors?
4 Replies
Matvey
Matvey2y ago
Some variable is undefined and not an array Just read the error message
Leonidas
Leonidas2y ago
Time for your debugger! My first guess would be that you have not provided an array for the rows, but undefined
sheng2808
sheng28082y ago
I just wrapped every return with a not undefined check lol that's how i got past that ._. I think is because it's populating data from a database and it will be undefined at first before trpc fetches the data from the db Is there a better way of solving this issue? lol
Leonidas
Leonidas2y ago
Suspending your component while you query your data is a good option to declaratively define a loading ui in your app
Want results from more Discord servers?
Add your server