Skip to content

Commit eae5aa6

Browse files
committed
fix merge issues
1 parent 9f83cab commit eae5aa6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/ra-core/src/controller/list/useListController.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

packages/ra-core/src/dataTable/DataTableBase.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)