Skip to content

Conversation

@lunaruan
Copy link
Contributor

@lunaruan lunaruan commented Sep 9, 2021

This PR includes two bug fixes:

  1. react-devtools-extension cannot import from react-devtools-inline. It should only be importing shared code from react-devtools-shared. Fix this by importing the react-devtools-shared version of hookNames.
  2. Add hookNames.js as an file to be included when react-devtools-inline is installed as a dependency.

Tested these bug fixes by building the extension and the test shell and verifying named hooks works as expected.

@lunaruan lunaruan requested review from bvaughn and jstejada September 9, 2021 21:07
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Sep 9, 2021
Copy link
Contributor

@jstejada jstejada left a comment

Choose a reason for hiding this comment

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

yay, thanks! could you add a test plan verifying that hook names still work for inline/extensions?

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

Nice! Thanks Luna!

@lunaruan lunaruan merged commit 43cf06d into facebook:main Sep 9, 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

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants