Closes #48. solid/reactivity has a warning in place to let people know about the following:
Events are never rebound and the bindings are not reactive, as it is expensive to attach and detach listeners. Since event handlers are called like any other function each time an event fires, there is no need for reactivity; shortcut your handler if desired.
However, a demo revealed that this doesn't apply to components, and passing a function-valued prop as an expression (ex. <Comp onClick={props.onClick}) works normally. I adjusted the rule to treat event handlers on components the same as other props.
Closes #48.
solid/reactivity
has a warning in place to let people know about the following:However, a demo revealed that this doesn't apply to components, and passing a function-valued prop as an expression (ex.
<Comp onClick={props.onClick}
) works normally. I adjusted the rule to treat event handlers on components the same as other props.