How do I check if my table element has data in its source?

I’m creating an empty state so that when my table has no data to present, but I don’t know how I can check if my table has data, should I repeat the search I made in its source?


On top of a Start custom state, you can add an extra List of Accountss custom state and the arrows will just change this List of Accountss to display in the Table and the start. This way the data source of the table will just be its state and you don’t need to do anything else. Then, to learn if there is data or not, you just check the count of this List of Accountss state.

This topic was automatically closed after 70 days. New replies are no longer allowed.