This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-21
Channels
- # beginners (165)
- # boot (9)
- # cider (9)
- # cljs-dev (5)
- # cljsjs (5)
- # clojars (4)
- # clojure (207)
- # clojure-brasil (1)
- # clojure-greece (3)
- # clojure-poland (2)
- # clojure-russia (6)
- # clojure-spec (85)
- # clojure-taiwan (1)
- # clojure-uk (53)
- # clojurescript (96)
- # community-development (2)
- # cursive (4)
- # datomic (14)
- # emacs (41)
- # events (2)
- # hoplon (184)
- # leiningen (1)
- # nginx (1)
- # off-topic (16)
- # om (7)
- # onyx (63)
- # pedestal (27)
- # planck (17)
- # protorepl (3)
- # rdf (9)
- # re-frame (62)
- # reagent (7)
- # ring-swagger (5)
- # schema (2)
- # spacemacs (5)
- # test-check (25)
- # untangled (93)
- # yada (3)
hello folks, does anyone know how to get the display name of any given component?
or at least its function name?
@michael.heuberger reagent.impl.component/comp-name
@michael.heuberger the public API also includes reagent.core.component-path
Hi all (cross post from the reagent group: https://groups.google.com/d/msg/reagent-project/iSxt-KVou98/x9yl4T1OBQAJ) In brief, my understanding is that I should never see the “SAME!” console.log in the following code in 0.6.0:
(def active-stage-headers (ratom/reaction .....)
(defonce old-stage-header-ids (atom [])) ;; - a "normal" atom, not a reagent.ratom/atom
(def active-stage-header-ids
(ratom/reaction
(let [result (mapv (comp :id :patient) @active-stage-headers)]
(if (= @old-stage-header-ids result)
(js/console.log "recalculating stage-header-ids SAME!")
(js/console.log "recalculating stage-header-ids DIFFERENT!"))
(reset! old-stage-header-ids result)
result)))
But I am seeing the “SAME!” log message in an endless loop.
Have I misunderstood?(trying in the #clojurescript channel as I can see tumbleweeds rolling by :-))
@danielcompton @mikethompson thx for the pointers