Skip to content

fix: Show forwarded component name #545

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

Closed
wants to merge 1 commit into from

Conversation

armandabric
Copy link
Collaborator

Recreate the PR #461 closed by error

@armandabric armandabric self-assigned this Mar 22, 2020
@armandabric armandabric changed the title fix: forward ref not working fix: Show forwarded component name Mar 22, 2020
@algolia algolia deleted a comment Mar 22, 2020
return (
element.type.displayName ||
(element.type.name !== '_default' ? element.type.name : null) || // function name
(ReactIs.isForwardRef(element) ? element.type.render.displayName : null) ||
Copy link

Choose a reason for hiding this comment

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

I believe this should be just name render.name

@dvnrsn
Copy link

dvnrsn commented Oct 19, 2020

What is the status on this PR. I believe I duplicated it here #579

@Andarist
Copy link
Contributor

@armandabric I'm pretty sure that this can be closed now since #617 has landed

@armandabric armandabric deleted the fix-forward-ref branch September 29, 2021 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants