File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1494,7 +1494,9 @@ The form can be validated by the server after its submission. In order to displa
1494
1494
1495
1495
{% raw %}
1496
1496
``` jsx
1497
- import { useMutation } from ' react-admin' ;
1497
+ import * as React from ' react' ;
1498
+ import { useCallback } from ' react' ;
1499
+ import { Create , SimpleForm , TextInput , useMutation } from ' react-admin' ;
1498
1500
1499
1501
export const UserCreate = (props ) => {
1500
1502
const [mutate ] = useMutation ();
@@ -1516,7 +1518,7 @@ export const UserCreate = (props) => {
1516
1518
);
1517
1519
1518
1520
return (
1519
- < Create undoable = { false } {... props}>
1521
+ < Create {... props}>
1520
1522
< SimpleForm save= {save}>
1521
1523
< TextInput label= " First Name" source= " firstName" / >
1522
1524
< TextInput label= " Age" source= " age" / >
@@ -2033,6 +2035,7 @@ const defaultSubscription = {
2033
2035
pristine: true ,
2034
2036
valid: true ,
2035
2037
invalid: true ,
2038
+ validating: true ,
2036
2039
};
2037
2040
```
2038
2041
{% endraw %}
You can’t perform that action at this time.
0 commit comments