Fork me on GitHub

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))
;;  ^{: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:


@odinodin: Very cool! Would be nice to be able to view also a test representation that is suitable for copying