Fork me on GitHub
#reagent
<
2016-01-02
>
adamtrilling02:01:23

I think I got it. My pseudocode wasn’t properly reflecting the situation. In second-component, I was dereferencing the ratom in the let, so it was getting dereferenced on initialization but not on render.

adamtrilling02:01:18

And now that I understand that, it turns out that both components work just fine as form-1s

adamtrilling03:01:18

Yup. form-1s for everyone!

jaen10:01:49

@adamtrilling: if you haven't yet it's always good to read re-frame's reagent articles on their wiki - https://github.com/Day8/re-frame/wiki#reagent-tutorials

adamtrilling15:01:08

Oh that’s helpful! Thanks.

adamtrilling20:01:54

Holy crap I haven't had this much fun writing code in a long time

shanekilkelly20:01:53

@adamtrilling: I was just thinking the same thing this evening simple_smile

shanekilkelly20:01:22

I’ve been playing around with reagent and petrol in an electron app. It’s so fun, and so easy to write

gadfly36120:01:08

Oh awesome! Im excited to give petrol a try

shanekilkelly20:01:19

Do give it a go. I’ve found it to be the right combination of simple and powerful