Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch on enableProfilerChangedHookIndices flag for OSS devtools builds #22011

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

mrkev
Copy link
Contributor

@mrkev mrkev commented Aug 3, 2021

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
Copy link
Contributor

bvaughn commented Aug 3, 2021

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

@bvaughn bvaughn merged commit 3a1dc3e into facebook:main Aug 3, 2021
@mrkev
Copy link
Contributor Author

mrkev commented Aug 3, 2021

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
Copy link

@ikeedge ikeedge left a comment

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