From 76f6c4db46d080c53a63312348695a980a266ff3 Mon Sep 17 00:00:00 2001 From: asvarcas Date: Mon, 26 Jul 2021 12:28:56 -0300 Subject: [PATCH] Improve socs sample --- docs/CreateEdit.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/CreateEdit.md b/docs/CreateEdit.md index bf807a98cff..86eb4153975 100644 --- a/docs/CreateEdit.md +++ b/docs/CreateEdit.md @@ -1494,7 +1494,9 @@ The form can be validated by the server after its submission. In order to displa {% raw %} ```jsx -import { useMutation } from 'react-admin'; +import * as React from 'react'; +import { useCallback } from 'react'; +import { Create, SimpleForm, TextInput, useMutation } from 'react-admin'; export const UserCreate = (props) => { const [mutate] = useMutation(); @@ -1516,7 +1518,7 @@ export const UserCreate = (props) => { ); return ( - + @@ -2033,6 +2035,7 @@ const defaultSubscription = { pristine: true, valid: true, invalid: true, + validating: true, }; ``` {% endraw %}