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

Crash "Can't perform a React state update on an unmounted component" #43

Open
phong-steph opened this issue Jun 18, 2019 · 0 comments
Open

Comments

@phong-steph
Copy link

react-dom.development.js?61bb:506 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in Async (created by Coordonnees)
    in FieldFeedbacks (created by Coordonnees)
    in div (created by FormSectionGroup)
    in FormSectionGroup (created by Coordonnees)
    in Coordonnees (created by EtapePrincipale)
    in div (created by FormSection)
    in div (created by FormSection)
    in section (created by FormSection)
    in FormSection (created by EtapePrincipale)
    in fieldset (created by EtapePrincipale)
    in form (created by FormWithConstraints)
    in FormWithConstraints (created by EtapePrincipale)
    in div (created by EtapePrincipale)
    in EtapePrincipale (created by component)
    in component (created by Context.Consumer)

Context: the form (with hooks) performs a validation with Async, the validation is not done yet while the form is re-rendered (because the upper state has changed).

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

No branches or pull requests

1 participant