Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
There was an error while loading. Please reload this page.
onChange does not map to on_change when attaching to ruby component #259
if you say for example:
MyRubyComponent().on(:change)then MyRubyComponent will receive aonChangeparam. But if you sayMyRubyComponent().on(:foo_bar)then MyRubyComponent will receive aon_foo_barparam.See
hyper-react/lib/react/element.rb
Line 122 in dc90b84
For why.
The reason this is done is that MyRubyComponent can pass
all_other_paramson to components nested within it, and the event names will follow along.Perhaps rethinking the entire param interface between ruby and native components could yield a more consistent solution.