Skip to content

correctly acquire name of forward ref's react element fix: forwardRef #579

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

dvnrsn
Copy link

@dvnrsn dvnrsn commented Oct 19, 2020

No description provided.

@@ -13,6 +13,7 @@ import type { TreeNode } from './../tree';
const supportFragment = Boolean(Fragment);

const getReactElementDisplayName = (element: ReactElement<*>): string =>
(element.type.render && element.type.render.name) ||
Copy link
Author

Choose a reason for hiding this comment

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

image
In the case of a type react.forward_ref, the render has the name
image

@dvnrsn dvnrsn changed the title correctly acquire name of forward ref's react element correctly acquire name of forward ref's react element fix: forwardRef Oct 19, 2020
@Andarist
Copy link
Contributor

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

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.

3 participants