Skip to content

react update - Cannot update a component from inside the function body of a different component. #128

@keeganstothert

Description

@keeganstothert

https://github.com/facebook/react/issues/18178

my strack trace links the above issue with this code in react-use-form-state:

if (formState.current.touched[name] == null) {
 >>>  formState.setTouched(_defineProperty({}, name, false));
}

I'm still digging into this because Cannot update a component from inside the function body of a different component. has popped up everywhere in my app.

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