-
Notifications
You must be signed in to change notification settings - Fork 463
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.componentWithProps no longer works with @directive("'use memo'") #7293
Comments
At first glance, the ppx is working as expected. // A.res
type props = {count: int}
@react.componentWithProps
let make = @directive("'use memo'")
props => {
Jsx.int(props.count)
} leads to
when running The problem doesn't occur with other attributes than I would guess, it happens a bit later in the game. |
It does transform the name right? |
As to why make is emitted with the body, and not Playground, perhaps the jsx transform should add the attribute to Playground, not make. |
The file |
Playground
no longer transforms the function name of
make
.The text was updated successfully, but these errors were encountered: