Skip to content

Commit a9703bd

Browse files
committed
Remove warning when using RecordIterator in a loading, error or empty state.
1 parent 6ae2fc3 commit a9703bd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/ra-core/src/controller/list/RecordsIterator.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ export const RecordsIterator = <RecordType extends RaRecord = any>(
1818
data.length === 0 ||
1919
total === 0
2020
) {
21-
console.warn(
22-
'<RecordsIterator> does not handle loading, offline, empty and error states. Use <WithListContext>.'
23-
);
2421
return null;
2522
}
2623

0 commit comments

Comments
 (0)