Skip to content

Commit

Permalink
Merge pull request #10231 from marmelab/doc/ReferenceManyInput/fix-mu…
Browse files Browse the repository at this point in the history
…tation-mode

[Doc] Fix `mutationMode` reference in `create` documentation
  • Loading branch information
fzaninotto authored Sep 23, 2024
2 parents e87ff23 + 2cee0a5 commit 4ad9783
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/ReferenceManyInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ProductEdit = () => (

`<ReferenceManyInput>` persists the changes in the reference records (variants in the above example) after persisting the changes in the main resource (product in the above example). This means that you can also use `<ReferenceManyInput>` in `<Create>` views.

**Tip**: `<ReferenceManyInput>` cannot be used with `undoable` mutations. You have to set `mutationMode="optimistic"` or `mutationMode="pessimistic"` in the parent `<Edit>` or `<Create>`, as in the example above.
**Tip**: `<ReferenceManyInput>` cannot be used with `undoable` mutations. You have to set `mutationMode="optimistic"` or `mutationMode="pessimistic"` in the parent `<Edit>`, as in the example above.

## Props

Expand Down Expand Up @@ -297,5 +297,6 @@ const ProductEdit = () => (
## Limitations

- `<ReferenceManyInput>` cannot be used inside an `<ArrayInput>` or a `<ReferenceOneInput>`.
- `<ReferenceManyInput>` cannot be used with `undoable` mutations in a `<Create>` view.
- `<ReferenceManyInput>` cannot have a `<ReferenceOneInput>` or a `<ReferenceManyToManyInput>` as one of its children.
- `<ReferenceManyInput>` does not support server side validation.
- `<ReferenceManyInput>` does not support server side validation.

0 comments on commit 4ad9783

Please sign in to comment.