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
`<EditInDialogButton>` doesn't render any field by default - it delegates this to its children, usually a Form component.
@@ -119,24 +139,20 @@ const EditButton = () => (
119
139
);
120
140
```
121
141
122
-
## `ButtonProps`
142
+
## `emptyWhileLoading`
123
143
124
-
The `ButtonProps` prop allows you to pass props to the MUI `<Button>` component. For instance, to change the color and size of the button:
144
+
By default, `<EditInDialogButton>` renders its child component even before the `dataProvider.getOne()` call returns. It can lead to a flash of empty content.
125
145
126
-
{% raw %}
146
+
To avoid this, set the `emptyWhileLoading` prop to `true`:
By default, `<EditInDialogButton>` renders a [Material UI `<Dialog>`](https://mui.com/material-ui/react-dialog/#full-screen-dialogs) component that takes the width of its content.
0 commit comments