This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
Cannot update a component from inside the function body of a different component #264
Labels
bug
Something isn't working
Intended outcome
I have a bunch of apps using mobx, mobx-react-lite and mobx-state-tree that before react 16.13.0 worked fine.
Actual outcome
After updating to react 16.13.0 they all throw many warnings similar to:
Maybe the image is better to spot it:
According to facebook/react#18178 (comment) the error comes from https://github.com/mobxjs/mobx-react-lite/blob/master/src/utils.ts#L9-L17:
How to reproduce the issue
Can't reproduce in a simple way because these are all projects that have grown over years.
Versions
I am using:
Sorry I can't be more specific. Maybe that would be possible, if this issue occurred while developing a new project.
The text was updated successfully, but these errors were encountered: