You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hence the locally defined component will be shadowed by the prop/labelled argument, resulting in a type error. The PPX should instead use an invalid identifier name, like brisk-component, so it cannot be shadowed.
Also do the same for %hook, which while it uses a more cryptic name also has a microscopic chance of being shadowed.
The text was updated successfully, but these errors were encountered:
let%component myComponent - (~component, (), hooks) => { ... }
will expand to (approximately)
hence the locally defined
component
will be shadowed by the prop/labelled argument, resulting in a type error. The PPX should instead use an invalid identifier name, likebrisk-component
, so it cannot be shadowed.Also do the same for
%hook
, which while it uses a more cryptic name also has a microscopic chance of being shadowed.The text was updated successfully, but these errors were encountered: