Alternative to forceUpdate #55
Comments
@arahansen, |
indeed, |
Interesting, I was not aware of this! Do you have any related studies or information on how |
No, just testing / reading sources / reverse engineering. It is just that |
Yes, thanks for the explanation! |
React docs warn against using
forceUpdate
to update a component because it is not as efficient.https://facebook.github.io/react/docs/component-api.html#forceupdate
mobx-react is using this API to react to observable changes: https://github.com/mobxjs/mobx-react/blob/master/index.js#L53
Would it be worth exploring alternatives to forceUpdate, such as forcing rerendering through something like setState?
The text was updated successfully, but these errors were encountered: