Skip to content

[Discussion] Mobx Devtools vs React Devtools inconsistent highlighted updates  #82

@carlosagsmendes

Description

@carlosagsmendes

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:

mobx-devtools-1

But when I use React Devtools the Mobx components are always being highlighted suggesting that they are always being rendered:

2018-02-10_1653

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:

performance mobx

I'm mentioning it since I don't see something similar for the sample React PureComponent that I'm using without Mobx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions