File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/ra-core/src/controller/list Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const RecordsIterator = <RecordType extends RaRecord = any>(
1919 total === 0
2020 ) {
2121 console . warn (
22- '<RecordsIterator> does not handle loading, empty and error states. Use <WithListContext>.'
22+ '<RecordsIterator> does not handle loading, offline, empty and error states. Use <WithListContext>.'
2323 ) ;
2424 return null ;
2525 }
@@ -47,3 +47,12 @@ export interface RecordsIteratorProps<RecordType extends RaRecord = any>
4747 children ?: React . ReactNode ;
4848 render ?: ( record : RecordType , index : number ) => React . ReactNode ;
4949}
50+
51+ /**
52+ * @deprecated use RecordsIterator instead.
53+ */
54+ export const ListIterator = RecordsIterator ;
55+ /**
56+ * @deprecated use RecordsIteratorProps instead.
57+ */
58+ export type ListIteratorProps = RecordsIteratorProps ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export * from './ListController';
88export * from './ListFilterContext' ;
99export * from './ListPaginationContext' ;
1010export * from './ListSortContext' ;
11- export * from './RecordsIterator' ;
1211export * from './queryReducer' ;
12+ export * from './RecordsIterator' ;
1313export * from './useExpanded' ;
1414export * from './useFilterContext' ;
1515export * from './useInfiniteListController' ;
You can’t perform that action at this time.
0 commit comments