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

feat(react): get component name via forbidden react internals #73

Closed
wants to merge 1 commit into from

Conversation

bowheart
Copy link
Collaborator

@bowheart bowheart commented Jul 21, 2023

Description

Every couple weeks, I get the strongest urge to make this change. I know it's mega bad practice and I don't think I can bring myself to actually merge this. But I'm gonna leave this here. Just so I can stop thinking of implementing it.

This uses the forbidden React secret internals object to access the currently-rendering component so we can get its displayName for the atom graph without using incredibly slow, hacky, brittle stack trace parsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant