File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,6 @@ export const useListController = <
119119 isPending,
120120 isPlaceholderData,
121121 refetch,
122- isPaused,
123- isPlaceholderData,
124122 } = useGetList < RecordType , ErrorType > (
125123 resource ,
126124 {
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ export const DataTableBase = function DataTable<
3939 const {
4040 sort,
4141 data,
42+ isPaused,
4243 isPending,
44+ isPlaceholderData,
4345 onSelect,
4446 onToggleItem,
4547 selectedIds,
@@ -154,7 +156,12 @@ export const DataTableBase = function DataTable<
154156 * displaying the table header with zero data rows,
155157 * the DataTable displays the empty component.
156158 */
157- if ( data == null || data . length === 0 || total === 0 ) {
159+ if (
160+ data == null ||
161+ data . length === 0 ||
162+ total === 0 ||
163+ ( isPaused && isPlaceholderData )
164+ ) {
158165 if ( empty ) {
159166 return empty ;
160167 }
You can’t perform that action at this time.
0 commit comments