Skip to content

Commit

Permalink
Backport marmelab#9697
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi authored and mjarosch committed Jul 1, 2024
1 parent 043c09a commit 764543b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/useNotify.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ notify('This is an error', { type: 'error' });

When using `useNotify` as a side effect for an `undoable` mutation, you MUST set the `undoable` option to `true`, otherwise the "undo" button will not appear, and the actual update will never occur.

{% raw %}
```jsx
import * as React from 'react';
import { useNotify, Edit, SimpleForm } from 'react-admin';
Expand All @@ -169,6 +170,7 @@ const PostEdit = () => {
);
}
```
{% endraw %}

## Custom Notification Content

Expand Down

0 comments on commit 764543b

Please sign in to comment.