Skip to content

Switch on enableProfilerChangedHookIndices flag for OSS devtools builds#22011

Merged
bvaughn merged 1 commit into
react:mainfrom
mrkev:devtools-profiler-changed-hooks-oss
Aug 3, 2021
Merged

Switch on enableProfilerChangedHookIndices flag for OSS devtools builds#22011
bvaughn merged 1 commit into
react:mainfrom
mrkev:devtools-profiler-changed-hooks-oss

Conversation

@mrkev

@mrkev mrkev commented Aug 3, 2021

Copy link
Copy Markdown
Contributor

Summary

Follow-up on thread of #20998. That PR added functionality behind an FB-only flag —namely showing which hooks (indices) changed on profiles that capture the reasons behind re-render. This functionality is useful beyond just Facebook. This diff enables it for OSS builds, so that everyone else can use it too.

Test Plan

Built the extension and conforirmed hook indeces appear under "Why did this render?" in the profiler (on both Chrome and Firefox). ✅

Screen Shot 2021-08-02 at 7 33 44 PM

Screen Shot 2021-08-02 at 7 45 18 PM

Ran the test suite, just in case. ✅

@bvaughn

bvaughn commented Aug 3, 2021

Copy link
Copy Markdown
Contributor

I wonder why the CI didn't run properly on this branch 🤔

@bvaughn bvaughn merged commit 3a1dc3e into react:main Aug 3, 2021
@mrkev

mrkev commented Aug 3, 2021

Copy link
Copy Markdown
Contributor Author

I wonder why the CI didn't run properly on this branch 🤔

Huh yeah, weird. In any case, thanks for merging this (:

Is there a regular external release schedule for the extension? When might this make it to the extension stores?

@mrkev mrkev deleted the devtools-profiler-changed-hooks-oss branch August 3, 2021 22:19

@ikeedge ikeedge left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

jstejada pushed a commit to jstejada/react that referenced this pull request Aug 6, 2021
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants