This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-18
Channels
- # admin-announcements (1)
- # aleph (3)
- # beginners (20)
- # boot (9)
- # cider (74)
- # clara (1)
- # cljs-dev (28)
- # cljsrn (15)
- # clojars (32)
- # clojure (149)
- # clojure-dusseldorf (3)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-russia (20)
- # clojure-uk (5)
- # clojurescript (133)
- # core-async (2)
- # cursive (19)
- # datomic (24)
- # devcards (1)
- # funcool (100)
- # hoplon (48)
- # keechma (1)
- # kosmos (7)
- # ldnclj (3)
- # leiningen (3)
- # luminus (16)
- # off-topic (8)
- # om (103)
- # onyx (47)
- # pedestal (3)
- # proton (7)
- # re-frame (13)
- # reagent (11)
- # ring-swagger (1)
- # specter (6)
- # testing (12)
- # untangled (24)
- # yada (32)
Hi, I am trying to make this simple lifecycle call but nothing happens. Any ideas about what I am doing wrong? https://www.refheap.com/116091
@shriphani: first, I wouldn't use the with-meta
approach. Instead look here:
https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components#form-3-a-class-with-life-cycle-methods
and then here:
https://github.com/Day8/re-frame/wiki/Using-Stateful-JS-Components
and finally, here:
http://yogthos.net/posts/2015-11-12-ClojureScript-Eval.html
@mikethompson: you wouldn’t use with-meta
- is there a technical reason or is it purely taste ?
For me, it is taste - i like how the resulting code looks. I generally have functions called foo-render, foo-did-mount, etc. and then bundled together in foo using a form-3 with create-class.
For me, it is more than taste. Using the with-meta
approach I can't have all my lifecycle function close over the same local state which is necessary in a large number of cases.
So, for me, there are both aesthetic and operational reasons for using From3. The with-meta
approach really doesn't cut it.
@shriphani: be aware that the 3rd link I supplied was specifically about codemirror (which I assume it the real purpose here). The other two were just laying the right foundation.
guys where can I read more about switching from identical?
to equal?
in reagent's new version (or old, I have not followed along so closely) ?
I saw this comment and was intrigued by the changes: https://github.com/Day8/re-frame/issues/36#issuecomment-167343102
ops, never mind, there is a link in there 😄