You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, there isn't a straightforward way to set a success message inside the onSubmit function using React-Hook-Form. Users are resorting to various workarounds such as managing an additional state using useState or utilizing setError with custom types like success, which can be cumbersome and less intuitive.
Describe the solution you'd like
I propose the addition of a setSuccess function to React-Hook-Form, similar to setError. This function would allow users to easily set a success message within the onSubmit function without resorting to alternative methods.
Describe alternatives you've considered
Alternatives include managing an extra state using useState or utilizing setError with custom types like success. However, these approaches are less intuitive and may lead to code clutter or confusion.
Additional context
The inclusion of a setSuccess function would enhance the user experience by providing a more streamlined and intuitive way to handle success messages within the React-Hook-Form workflow. This feature would contribute to the overall usability and flexibility of the library.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently, there isn't a straightforward way to set a success message inside the
onSubmit
function using React-Hook-Form. Users are resorting to various workarounds such as managing an additional state usinguseState
or utilizingsetError
with custom types like success, which can be cumbersome and less intuitive.Describe the solution you'd like
I propose the addition of a
setSuccess
function to React-Hook-Form, similar tosetError
. This function would allow users to easily set a success message within theonSubmit
function without resorting to alternative methods.Describe alternatives you've considered
Alternatives include managing an extra state using
useState
or utilizingsetError
with custom types like success. However, these approaches are less intuitive and may lead to code clutter or confusion.Additional context
The inclusion of a
setSuccess
function would enhance the user experience by providing a more streamlined and intuitive way to handle success messages within the React-Hook-Form workflow. This feature would contribute to the overall usability and flexibility of the library.The text was updated successfully, but these errors were encountered: