Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in 2.4.2 makes the library unusable #3847

Open
grybykm opened this issue Jul 20, 2023 · 2 comments
Open

Regression in 2.4.2 makes the library unusable #3847

grybykm opened this issue Jul 20, 2023 · 2 comments

Comments

@grybykm
Copy link

grybykm commented Jul 20, 2023

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
Copy link

fum4 commented Jul 24, 2023

This issue makes the latest version completely unusable indeed 😞

@Mihai1iMob
Copy link

Mihai1iMob commented Jul 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants