I'm getting inconsistent results when using the highlight updates feature of Mobx React Devtools and React Devtools.
Using Mobx-React-Devtools the Mobx components are only highlighted twice (when they render the first time and after being updated when I click the update button:
But when I use React Devtools the Mobx components are always being highlighted suggesting that they are always being rendered:
There might be a difference in on what lifecycle the highlights are triggered, it might be that the mobx tools only highlight on actual render, where the React ones update new state / or props
Hi,
I'm getting inconsistent results when using the highlight updates feature of Mobx React Devtools and React Devtools.
Using Mobx-React-Devtools the Mobx components are only highlighted twice (when they render the first time and after being updated when I click the update button:
But when I use React Devtools the Mobx components are always being highlighted suggesting that they are always being rendered:
Is this expected?
Here is a link to the sample project on CodeSandBox in case you want to try it out.
I've also noticed that on both Mobx components there's an update method being called every single time:
I'm mentioning it since I don't see something similar for the sample React PureComponent that I'm using without Mobx.