Closed zth closed 3 months ago
This warning is legit, as the PPX V4 code generated for externals never reads the fields in the prop type: using it with children only amounts to creating a new record {props: ...}
, not reading its fields. (An implementation would need to read them, but the implementation is exactly what's missing in an external).
Can be handled at the PPX V4 level by adding a @live
annotation: https://github.com/rescript-lang/rescript-compiler/pull/6796
Bind an external component:
Use it with children:
It's still reported as:
But I assume it should be automatically marked as live because it's sent into an external.