This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-14
Channels
- # beginners (4)
- # boot (78)
- # braveandtrue (3)
- # cider (9)
- # clara (6)
- # cljs-dev (4)
- # clojure (57)
- # clojure-brasil (1)
- # clojure-russia (99)
- # clojure-spec (20)
- # clojure-uk (40)
- # clojurescript (162)
- # component (17)
- # cursive (4)
- # datomic (21)
- # docker (2)
- # emacs (5)
- # figwheel (2)
- # hoplon (363)
- # jobs (1)
- # leiningen (1)
- # om (4)
- # om-next (5)
- # onyx (10)
- # proton (1)
- # re-frame (13)
- # reagent (13)
- # ring (3)
- # rum (1)
- # slack-help (1)
- # test-check (3)
- # untangled (7)
- # vim (24)
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.
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/
On the plus side, I learned a lot more about re-frame, reagent and turned many form-2 fns into form-1 ones. ๐
@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 ๐
@ska this also might be useful backgrounder ... https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
@ska, this is a thorny subject ๐
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
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?
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.