Idiomatic approach to error handling when `onSubmit` handler rejects?
I'm using
@tanstack/react-query so I have something like this for the form setup:What's the recommended approach for reactively triggering some UI (e.g. an error dialog) when the
onSubmit throws?My initial inclination was to make use of
someMutation.status i.e.Guessing that this would work fine in this specific case but wondering if there's something in the
form store that I can subscribe to in order to achieve something similar?