Skip to content

Commit 3afeca9

Browse files
authored
Merge pull request #9295 from marmelab/doc-create-dialog-standard-edit
[Doc] Update `<CreateDialog>` documentation about `edit` conflict
2 parents 6bd4df2 + 4461408 commit 3afeca9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/CreateDialog.md

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ In the related `<Resource>`, you don't need to declare a `create` component as t
5555
<Resource name="customers" list={CustomerList} />
5656
```
5757

58+
**Note**: You can't use the `<CreateDialog>` and have a standard `<Edit>` specified on your `<Resource>`, because the `<Routes>` declarations would conflict. If you need this, use the [`<CreateInDialogButton>`](./CreateInDialogButton.md) instead.
59+
5860
`<CreateDialog>` accepts the same props as the [`<Create>`](./Create.md) component, and the same type of children (e.g. a [`<SimpleForm>`](./SimpleForm.md) element).
5961

6062
* `children`: the components that renders the form

0 commit comments

Comments
 (0)