This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-04
Channels
- # admin-announcements (3)
- # alda (4)
- # beginners (30)
- # boot (116)
- # cbus (5)
- # cider (20)
- # clara (10)
- # cljs-dev (12)
- # cljsjs (41)
- # cljsrn (9)
- # clojars (6)
- # clojure (131)
- # clojure-bangladesh (5)
- # clojure-colombia (2)
- # clojure-dev (9)
- # clojure-ireland (4)
- # clojure-japan (3)
- # clojure-norway (10)
- # clojure-poland (6)
- # clojure-russia (59)
- # clojure-sg (1)
- # clojurebridge (2)
- # clojurescript (76)
- # clojurewerkz (4)
- # css (6)
- # cursive (21)
- # data-science (24)
- # datomic (27)
- # emacs (9)
- # hoplon (68)
- # jobs (2)
- # jobs-rus (1)
- # ldnclj (10)
- # lein-figwheel (9)
- # leiningen (21)
- # off-topic (5)
- # om (232)
- # onyx (63)
- # parinfer (2)
- # proton (25)
- # re-frame (12)
- # reagent (39)
- # untangled (6)
- # yada (122)
@mikethompson: thanks! will do
@mikethompson: argh, what a mess! can’t get this thing to work lol throws an “Error rendering component” in my top component, in the first subscription, as far as I can see
A sanity hint for incoming uncaught error: var STARratom_context_STAR_56784 = reagent.ratom.STARratom_context_STAR_; reagent.ratom.STARratom_context_STAR_ = obj; try{return f <<< :radioactive_sign: NULL :radioactive_sign: <<< .call(null);
the thing is that my app is not exactly organised in the recommended way, because I've split my views across a few namespaces. They all only contain views, so I guess if I put the trace macros on all of them it should be fine?
Well, there are also a few defs (as in, not defns), do these mess the tracer? Do I need to take these out?
@mikethompson: thanks! I was putting a println
inside the component and that's how I was seeing it "re-render", but you're saying even if that println fires, that doesn't mean an actual Hiccup/React/DOM render is happening?
Also, I'm here because Daniel Higginbotham, author of Clojure for the Brave and True, endorsed re-frame by using it for a couple of sites including http://clojurework.com: https://twitter.com/nonrecursive/status/705207468494868480 👏
Hello, is there any performance of other difference between simple and dynamic subscription but working principle? It seems that dynamic subscriptions cover larger amount of scenarios so making all subscriptions dynamic looks reasonable to me.
@fasiha: the println tells you if the reagent render was called, producing new hiccup. And then Reagent has to turn that hiccup into VDOM, and then React has to check this VDOM with its current retained-VDOM to see what is different and changes must be made to the DOM. So it is definitely better that a renderer does not run UNLESS there are changes.