You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<ListBase>` is a headless variant of [`<List>`](./List.md). It fetches a list of records from the data provider, puts it in a [`ListContext`](./useListContext.md), and renders its children. Use it to build a custom list layout.
9
+
`<ListBase>` is a headless List page component. It fetches a list of records from the data provider, puts it in a [`ListContext`](./useListContext.md), and renders its children. Use it to build a custom list layout.
10
10
11
11
Contrary to [`<List>`](./List.md), it does not render the page layout, so no title, no actions, no `<Card>`, and no pagination.
12
12
13
13
`<ListBase>` relies on the [`useListController`](./useListController.md) hook.
14
14
15
15
## Usage
16
16
17
-
You can use `ListBase` to create your own custom reusable List component, like this one:
17
+
You can use `ListBase` to create your own custom List page component, like this one:
In addition, `<ListBase>` renders its children components inside a `ListContext`. Check [the `<List children>` documentation](./List.md#children) for usage examples.
70
-
Alternatively, you can pass a `render` function prop instead of `children`. This function will receive the `ListContext` as argument.
0 commit comments