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

Hook names grabbing solution w/o changing api #373

Closed
a-x- opened this issue Aug 9, 2019 · 1 comment
Closed

Hook names grabbing solution w/o changing api #373

a-x- opened this issue Aug 9, 2019 · 1 comment
Labels
🚫 duplicate This issue or pull request already exists

Comments

@a-x-
Copy link

a-x- commented Aug 9, 2019

add to react jsx babel transformation minor version with grabber assosiated with hooks const names.

It's dead easy, I can create a demo.

const [data, updData] = useState(null);

would be something like:

const [data, updData] = useState(null);
__devtools_reportHookName(data, 'data'); // data is a pointer to some Map storage under the hook of devtools
@bvaughn
Copy link
Owner

bvaughn commented Aug 9, 2019

Duplicate of #323

@bvaughn bvaughn marked this as a duplicate of #323 Aug 9, 2019
@bvaughn bvaughn closed this as completed Aug 9, 2019
@bvaughn bvaughn added the 🚫 duplicate This issue or pull request already exists label Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants