How can I change the <TextInput /> value in react admin to get an updated value which is from the API response?
Here is the code:
<TextInput source="..." label="..." />
I've tried to get used to setValue, and getValues from the useForm hook. But it doesn't work.
The [email protected] now using
react-hook-form. So you can use theuseFormContextto get thesetValueBut it only effects when you wrap your form with the
FormProvider(in react-admin the provider will be something like<SimpleFormConfigurable>)