Replies: 1 comment
-
I think this a good suggestion. However, I'm not going to integrate third party libraries specific code in next-safe-action, because I don't feel it's the right place to do it. It's external to the library, it increases maintenance cost and would enable requests for any third party library out there. Instead, an helper/adapter package could be published on NPM and/or documentation updated. Feel free to publish it or open a PR to update docs, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A nice integration addition would be to convert
result.validationErrors
,result.serverError
,result.fetchError
into an object that we can pass toreact-hook-form
'suseForm
function in theerrors
prop. That way the form would auto-populate with the server errors once the form is submittedBeta Was this translation helpful? Give feedback.
All reactions