I used a bit of a less "invasive" approach now and kept the react-admin wrappers but used react-hook-form directly only in order to get the formContext which is required to "reset" the form to preserve the internal form state.
I also made the error notifcations have the red error theme to make it consistent with the notifications shown when form validation errors occur and the user tries to submit the form.
I used a bit of a less "invasive" approach now and kept the react-admin wrappers but used react-hook-form directly only in order to get the formContext which is required to "reset" the form to preserve the internal form state. I also made the error notifcations have the red error theme to make it consistent with the notifications shown when form validation errors occur and the user tries to submit the form.