Table Empty State

Is there a way to style a table’s empty state / loading state? I want to put a loading icon in place for when the table is loading.

You could replace the table with some form of spinner or skeleton while data is loading. Just swap which is displayed based on the loading state variable. That way you’re not trying to mutate the component that has important jobs once the data shows up.

Thanks for the help. How would I exactly go about capturing loading state as a variable?

A collection has a member variables called “isFetching” and “isFetched” that you could track for this purpose.You should be able to see them in the formula browser on the bottom half.

1 Like