jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.73k stars 2.77k forks source link

Regression in 2.4.2 makes the library unusable #3847

Open grybykm opened 11 months ago

grybykm commented 11 months ago

Bug report

Regression since 2.4.1

Current Behavior

Formik 2.4.2

Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
    at checkForNestedUpdates (react-dom.development.js:27292:1)
    at scheduleUpdateOnFiber (react-dom.development.js:25475:1)
    at dispatchSetState (react-dom.development.js:17527:1)
    at eval (formik.esm.js:402:1)
    at eval (formik.esm.js:503:1)
The above error occurred in the <FieldArrayInner> component:

    at FieldArrayInner (webpack-internal:///./node_modules/formik/dist/formik.esm.js:1642:30)

Expected behavior

It should work as in 2.4.1

fum4 commented 11 months ago

This issue makes the latest version completely unusable indeed 😞

Mihai1iMob commented 11 months ago

Indeed, had to revert to formik@2.3.3 to be able to use it again. :(