Skip to content

Commit

Permalink
Backport #9697
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jun 24, 2024
1 parent 84b1204 commit cea3bf8
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 cea3bf8

Please sign in to comment.