From 8c01e20cd83740f687e8860146506f4c3dfccbe5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kaiser Date: Mon, 16 Dec 2024 10:26:30 +0100 Subject: [PATCH] [Doc] Remove `` from the docs --- docs/ShowBase.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/docs/ShowBase.md b/docs/ShowBase.md index 977c4a637f..9b5360837e 100644 --- a/docs/ShowBase.md +++ b/docs/ShowBase.md @@ -81,7 +81,7 @@ import { Grid } from '@mui/material'; import StarIcon from '@mui/icons-material/Star'; const BookShow = () => ( - + @@ -117,20 +117,6 @@ const PostShow = () => ( ); ``` -## `emptyWhileLoading` - -By default, `` renders its child component even before the `dataProvider.getOne()` call returns. If you use `` or ``, this isn't a problem as these components only render when the record has been fetched. But if you use a custom child component that expects the record context to be defined, your component will throw an error. - -The `` prop provides a convenient shortcut for that use case. When enabled, `` won't render its child until the record is loaded. - -```jsx -const BookShow = () => ( - - ... - -); -``` - ## `id` By default, `` deduces the identifier of the record to show from the URL path. So under the `/posts/123/show` path, the `id` prop will be `123`. You may want to force a different identifier. In this case, pass a custom `id` prop.