Using setFieldValue onSubmit in Formik
问题 I'm using formik with @jbuschke/formik-antd and react-input-mask . I have a mask +7 (___) ___-__-__ applied to one of the inputs and I need to parse it onSubmit to remove unnecessary symbols. I've defined a const changedValue , which is then used in setFieldValue , but I get the following error: Invariant Violation Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested