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
Copy file name to clipboardExpand all lines: docs/EditInDialogButton.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,20 @@ const EditButton = () => (
120
120
);
121
121
```
122
122
123
+
## `emptyWhileLoading`
124
+
125
+
By default, `<EditInDialogButton>` renders its child component even before the `dataProvider.getOne()` call returns. It can lead to a flash of empty content.
126
+
127
+
To avoid this, set the `emptyWhileLoading` prop to `true`:
128
+
129
+
```jsx
130
+
constEditButton= () => (
131
+
<EditInDialogButton emptyWhileLoading>
132
+
...
133
+
</EditInDialogButton>
134
+
);
135
+
```
136
+
123
137
## `ButtonProps`
124
138
125
139
The `ButtonProps` prop allows you to pass props to the MUI `<Button>` component. For instance, to change the color and size of the button:
0 commit comments