Fork me on GitHub
#re-frame
<
2017-01-14
>
ska00:01:02

Oooh, it seems to work. I only spent like 6 weeks on this (on and off obviously) or so

ska00:01:07

Hm, do I need the argv destrucuring at all? It looks like I can just pass in the argument that is in the outer function of the component.

ska00:01:10

No, that was wrong.

ska00:01:32

Once you have a solution, you will find the sources you needed in the first place: http://nils-blum-oeste.net/clojurescripts-reagent-using-props-in-lifecycle-hooks/

ska00:01:00

@kishanov thanks for your help!

kishanov00:01:29

np, glad it worked

ska00:01:02

On the plus side, I learned a lot more about re-frame, reagent and turned many form-2 fns into form-1 ones. ๐Ÿ˜‰

edwthomas01:01:02

@ska Ah, my gist is too simplistic. I should have added some code that uses the :component-did-update lifecycle method. Thanks to you, now I know how to do that ๐Ÿ™‚

pesterhazy12:01:19

@ska, this is a thorny subject ๐Ÿ™‚

si1413:01:22

I'm wondering if anything from http://techblog.netflix.com/2017/01/crafting-high-performance-tv-user.html is applicable to a CLJS world. E.g. most of the babel tricks they use can be done using clever macroses

si1413:01:42

there is a https://github.com/r0man/sablono lib that "compiles" hiccup statically to react.createElement calls, but it seems that one can do even better with plain JS objects nowadays. I quickly checked the Reagent repo, but it seems that the additional step of "parsing" Hiccup tree and turning it into createElement calls just doesn't bother anyone there. is this impression true? do you think this is important?

Drew Verlee23:01:53

Just finished https://www.confluent.io/making-sense-of-stream-processing-ebook-download/, he explains why he thinks FRP is the future of webdev at the end. Though the book isnโ€™t focused on FRP (not as i understand it). I highly recommend anything by Martin.