on-internet
← Community

Errors object is not being updated properly on input

Stack Overflow ·

coming into a new codebase here and it's also my first time using Formik and Yup so I will try to be as concise as possible, but bear with me. I have some forms that were built with Formik and use a validation schema provided by Yup. I also have a useState variable to indicate whether or not an item is present in Yup's errors object that is used to prevent the user from continuing to the next form until the error is fixed. The validation works correctly initially, as when an invalid input is provided, the corresponding error is shown in the errors object. However, if I type something valid int

Comments

Sign in or sign up to comment and upvote.

No comments yet.