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
I think there is some gap in the documentation and actual implementation of the touched prop.
As per Formik documentation, the touched prop should be { [field: string]: boolean }.
Please see the below image:
As per the FormikTouched implementation, the touched prop could have nested objects depending on the FormikValues like below:
This is an example and FormikValues have same shape.
Please see the below image of actual implementation:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think there is some gap in the documentation and actual implementation of the touched prop.
As per Formik documentation, the touched prop should be { [field: string]: boolean }.
Please see the below image:
As per the FormikTouched implementation, the touched prop could have nested objects depending on the FormikValues like below:
This is an example and FormikValues have same shape.
Please see the below image of actual implementation:
Please clarify.
Beta Was this translation helpful? Give feedback.
All reactions