Tanstack tables giving errors during deployment on vercel?
Does anybody know how to interpret these errors?
4 Replies
Some variable is undefined and not an array
Just read the error message
Time for your debugger! My first guess would be that you have not provided an array for the rows, but undefined
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
Suspending your component while you query your data is a good option to declaratively define a loading ui in your app