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

Allow components using forwardRef #3

Open
ddouglasz opened this issue Jun 22, 2022 · 0 comments
Open

Allow components using forwardRef #3

ddouglasz opened this issue Jun 22, 2022 · 0 comments

Comments

@ddouglasz
Copy link

Hello,
Components that use React.ForwardRef seem to be caught somewhere with an error because of a parentPath check. We want to be able to set param type name for such components.

something about this code snippet check seems to be affecting it;

  if (path.parentPath.node.init && path.parentPath.node.init.params.length === 0) {
        return;
   }

I have a PR for this if thats okay.
Please kindly let me know if this has been an issue in the past and if there is a better solution, I will be happy to follow.

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

No branches or pull requests

1 participant