Fork me on GitHub
#om-next
<
2018-01-31
>
Pontus06:01:41

Hello, could anyone explain the reason for separating computed props (`computed`/`get-computed)` from other props when you pass down props to a child component? What's the reason you shouldn't just e.g. pass down a callback function as a normal prop? I tried just using a normal prop for a callback and it seems to work, but read that it's better to use computed-props.

claudiu10:01:59

@pontus.colliander It's explained really well here (Fulcro is an om-next fork, differs a bit but some of the core concepts like computed are exactly the same) http://book.fulcrologic.com/#_passing_callbacks_and_other_parent_computed_data

Pontus16:01:06

Thanks a lot! Much clearer now