This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-15
Channels
- # alda (4)
- # beginners (9)
- # boot (2)
- # cider (56)
- # cljsrn (6)
- # clojure (29)
- # clojure-belgium (2)
- # clojure-gamedev (1)
- # clojure-russia (19)
- # clojure-uk (3)
- # clojurescript (7)
- # core-async (2)
- # datomic (16)
- # hoplon (96)
- # lein-figwheel (4)
- # om (2)
- # om-next (3)
- # other-languages (6)
- # planck (11)
- # reagent (9)
- # rethinkdb (1)
- # ring-swagger (1)
- # spacemacs (1)
i often use the first approach @jfntn - what are your issues ?
hmm well the path “pointer” for the selected tab is outside of the tab itself so for components that deal with a single tab, they need the value in {…}
plus the path itself this gets a bit tedious
Does someone know why is the following working even though it shouldn't since set-timeout! is not a function
;;(def seconds-elapsed (r/atom 0))
;;(def set-timeout!
;; (js/setInterval #(swap! seconds-elapsed inc) 1000))
;;
;;(defn
;; ^{:component-did-mount set-timeout!};;work- (set-timeout!) also work
;; timer-component []
;; [:div [:h2 "This is a timer"]
;; "Seconds Elapsed: " @seconds-elapsed])
`@lewix: not familiar with the setTimeout apis, but this looks like it’s working by side effects, don’t you get the same thing if you remove the :component-did-mount metadata?
@jfntn @gadfly361 and I figure it out; It is working by side effects
I’ve just created a development tool for inspecting data in any Reagent app as a tree structure, I’d be happy to take feedback or pull requests: https://github.com/Odinodin/data-frisk-reagent
@odinodin: Very cool! Would be nice to be able to view also a test representation that is suitable for copying
@odinodin: that’s cool, but let me tell you what would be even cooler IMO: a reagent component rendering JSONML produced by cljs-devtools https://github.com/binaryage/cljs-devtools/blob/0ec51b1ef72d12afc1292ee8c00a5be8e6f819ba/src/devtools/format.cljs#L367-L369 https://docs.google.com/document/d/1FTascZXT9cxfetuPRT2eXPQKXui4nWFivUnS_335T3U