React-devtools: memo()-wrapped components disappear from the profiler output

Created on 26 Oct 2018  Â·  1Comment  Â·  Source: facebook/react-devtools

Reproduction:

https://codesandbox.io/s/y184rxnwv

Steps to reproduce

  • Start a new profiler recording
  • Click on the + and - buttons a few times.
  • Stop the recording
  • Observe the flame graph for each commit

Actual behaviour:

The MemoizedComponent has clearly rendered in response to each click on the + or - buttons, but it is not present in the flame graph for any commit. If the React.memo call wrapping MemoizedComponent is removed, the component is present in the flame graph.

Expected behaviour:

As the MemoizedComponent has rendered in each commit, it should be present in the flame graph.

This issue is possibly related to #1193.

Most helpful comment

Let's consider this a duplicate of #1193 😄 We're aware of issues with memo and plan to fix them soon– just didn't get it done before the conference unfortunately 😦Sorry!

>All comments

Let's consider this a duplicate of #1193 😄 We're aware of issues with memo and plan to fix them soon– just didn't get it done before the conference unfortunately 😦Sorry!

Was this page helpful?
0 / 5 - 0 ratings