komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
788 stars 58 forks source link

Bug: NoData and Loading text are shown at the same time #303

Closed bay-jacewhitten closed 1 year ago

bay-jacewhitten commented 1 year ago

Both the no data and the loading messages are shown at the same time.

https://stackblitz.com/edit/table-loading-ts-9dhmvb?file=Demo.tsx

komarovalexander commented 1 year ago

Hi @bay-jacewhitten thanks for the issue this is workaround:

        childComponents={{
          noDataCell: {
            content: ({ noData }) =>
              option.loading.enabled ? <></> : noData?.text,
          },
        }}

https://stackblitz.com/edit/table-loading-ts-q9xejf?file=Demo.tsx

komarovalexander commented 1 year ago

fixed in v7.14.1 https://stackblitz.com/edit/table-loading-ts-9dhmvb?file=Demo.tsx