Skip to content

fix: infer displayName given forwardRef() node #436

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

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Feb 13, 2020

Makes displayNameHandler succeed when invoked on the CallExpression node representing a forwardRef call, rather than on the function expression that is its argument. (The latter scenario already works and is what the existing tests cover.)

@motiz88 motiz88 force-pushed the displayname-forwardref branch from b75a6e1 to da050ca Compare February 13, 2020 01:49
@danez danez merged commit f9d5490 into reactjs:master Feb 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants