This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-30
Channels
- # admin-announcements (3)
- # aws-lambda (12)
- # beginners (88)
- # boot (73)
- # capetown (6)
- # carry (16)
- # cider (8)
- # cljsjs (7)
- # clojure (90)
- # clojure-belgium (4)
- # clojure-dev (19)
- # clojure-greece (41)
- # clojure-portugal (1)
- # clojure-quebec (4)
- # clojure-russia (25)
- # clojure-spec (172)
- # clojure-taiwan (1)
- # clojure-uk (76)
- # clojurescript (82)
- # cursive (37)
- # datavis (2)
- # datomic (46)
- # devcards (1)
- # emacs (4)
- # euroclojure (6)
- # events (1)
- # hoplon (31)
- # jobs (1)
- # keechma (9)
- # off-topic (4)
- # om (7)
- # onyx (65)
- # other-languages (15)
- # pedestal (1)
- # planck (50)
- # proton (1)
- # re-frame (40)
- # reagent (7)
- # spacemacs (14)
- # spirituality-ethics (37)
- # testing (1)
- # untangled (2)
- # yada (44)
or:
(def awesome-form-class "??")
[:form
{:id "my-awesome-form"
:class awesome-form-class} …]
what’s the proper way to get props from a component inside a custom-hook :component-did-mount [this]
?
@lwhorton: see @martinklepsch explanations here: https://www.martinklepsch.org/posts/props-children-and-component-lifecycle-in-reagent.html
I just had a really weird idea. Do reagent components side-effect on render? Like, suppose I did something like:
(defn some-comp [] (do (some-side-effect) [:p (str @some-ratom)]))
If I then stuck some-comp
into something that rendered, would it do the side effect once, every time some-ratom
were derefed, never, just throw an error?
I might have to experiment with this a bit...