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

[@react.component] breaks when used with a function that has a explicit polymorphic locally abstract type #452

Closed
gugahoa opened this issue Jun 28, 2019 · 2 comments

Comments

@gugahoa
Copy link

gugahoa commented Jun 28, 2019

Minimal example:
https://reasonml.github.io/try.html?rrjsx=true&reason=NoAQRgzgdAxg9gOwGYEsDmACA3gKwgDwC4MBmAXwF0BuAKBoFs4ATAVwBsBTDAcQCcOOAFxQJMAXmw0MGUPwCGMQbDj0ADog4JBFKRk6CM9OQGsuEgBSCAnqq5yANBgB+SOHGJxVwxObkBKMQB+PwwxAD5JaWkAHjAWQUFECKwAJQ4FJQhBXhE0cwAiAAkONjY4AEJy-L8yDGiAejiEpN0yWja6NIyAEQB5AFk0qH4EJg5eABU4AFFOek1BAHUUQQALAEkmc2i+AWFRDHqwx3zVfgA3FA4Ad2qqIA

Error message:
Fatal error: exception Invalid_argument("react.component calls can only be on function definitions or component wrappers (forwardRef, memo).")

@mlms13
Copy link

mlms13 commented Sep 18, 2019

#466 is a duplicate of this issue.

@peterpme
Copy link
Collaborator

Hey @gugahoa

In an effort to clean up the repo (and given how old this issue is) I'm going to close this out for now.

Sorry about the delay. Please re-open if its still relevant.

Thanks!

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

3 participants