We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<WithListContext>
1 parent f9c1cf0 commit 58cc858Copy full SHA for 58cc858
packages/ra-core/src/controller/list/WithListContext.tsx
@@ -1,4 +1,4 @@
1
-import React, { ReactElement } from 'react';
+import * as React from 'react';
2
import { RaRecord } from '../../types';
3
import { ListControllerResult } from './useListController';
4
import { useListContextWithProps } from './useListContextWithProps';
@@ -81,7 +81,7 @@ export interface WithListContextProps<RecordType extends RaRecord>
81
> {
82
render?: (
83
context: Partial<ListControllerResult<RecordType>>
84
- ) => ReactElement | false | null;
+ ) => React.ReactNode;
85
loading?: React.ReactNode;
86
offline?: React.ReactNode;
87
errorState?: ListControllerResult<RecordType>['error'];
0 commit comments