Skip to content

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

@phong-steph

Description

@phong-steph
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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions