From 615422912442be41adee0f95355391c4d3fa0240 Mon Sep 17 00:00:00 2001 From: ValentinnDimitroff Date: Mon, 4 Mar 2024 15:23:31 +0200 Subject: [PATCH] [Doc] Fix not parsed mutationOptions value in useNotify/undoable --- docs/useNotify.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/useNotify.md b/docs/useNotify.md index 72418c84a50..47faa67d20f 100644 --- a/docs/useNotify.md +++ b/docs/useNotify.md @@ -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'; @@ -169,6 +170,7 @@ const PostEdit = () => { ); } ``` +{% endraw %} ## Custom Notification Content