Expose the loading state prop of table component

I don't always use a query as the data source of a table. Sometimes it's an array/variable that I populate following a user action (search, for example).
Ordinarily, when a datasource is fetching, the table will show a loading state.
When that search is being performed separately, to then populate a variable as the table's data source, no such loading occurs (because variables don't have an isFetching state).
Would it be possible to expose the loading state as a prop on the table (like with forms), so that we can control the table's loading state, as required?

2 Likes

Yeah, I can see how this could be helpful. So adding my +1.

As a workaround, you can always add your table to a container and use the container's loading state.

1 Like

Hi @hansontools

I went ahead a made a feature request for this. I'll post here with any updates :slight_smile: !

1 Like