-
-
Notifications
You must be signed in to change notification settings - Fork 348
state is treated like observable and calls componentWillReact every change #185
Comments
This was made as a feature together with #124. If you need to do something only on blur, why just not to do it |
All right, I found workaround, I use Maybe you should update README because now there is misleading info:
but it is not true anymore since 4.0.0. I am right? |
@rlesniak I suggest you to use |
mobx-react@4 has changed semantic of `props` and `state`, which became observables. So, this not became obsolete too. #185
@rlesniak I've changed the readme, so, gonna to close this issue. Feel free to reopen if you have any questions left. |
I found this issue while update from 3.5.9 to 4.0.3
Reproduced here: JSBin (play with mobx-react version in HTML tab)
On older version mobx-react was calling
componentWillReact
only once - when I change observable value. Now its calling every time I dosetState
in myhandleChange
event. 3.5.9 didnt have this behavior.I treat this like a bug because I didn't mark my state as observable so mobx should not treat it like observable.
But if its a feature ( ͡° ͜ʖ ͡°) then plase help me with bringing back my target behavior without rollbacking version. Thanks.
The text was updated successfully, but these errors were encountered: