Closed tomconnors closed 2 years ago
It looks like defcomponent should set "displayName" with the statics rather than w/ the instance methods/properties.
defcomponent
This gives me a component that uses HelixComponent as its display name:
HelixComponent
(h/defcomponent MyComponent (render [this] (helix.dom/div)))
but this gives me one w/ MyComponent as the display name:
MyComponent
(h/defcomponent MyComponent ^:static (displayName "MyComponent") (render [this] (helix.dom/div)))
ah yep! should be an easy fix
Fixed in latest master! Thanks for the report
It looks like
defcomponent
should set "displayName" with the statics rather than w/ the instance methods/properties.This gives me a component that uses
HelixComponent
as its display name:but this gives me one w/
MyComponent
as the display name: