rubber-blueR
Refine3y ago
4 replies
rubber-blue

useForm `mutationError` property instead of `onMutationError` function?

In the
useForm
hook, there is an
onMutationError
prop. There is also an
errorNotification
prop. But I can't see any state based property for the presence of an error after the mutation. I don't want to use
errorNotification
to trigger a Toast, I want to show a banner on my page instead. Do I have to manually maintain a
mutationError
state in the
onMutationError
function? That means I'll also need to handle clearing it onSubmit, etc. I'd prefer if there was an exposed
mutationError
or similar property I could access directly...
Was this page helpful?