This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-30
Channels
- # announcements (2)
- # avi (12)
- # aws (6)
- # beginners (49)
- # boot (140)
- # cider (2)
- # cljs-dev (5)
- # cljsrn (9)
- # clojure (149)
- # clojure-czech (6)
- # clojure-miami (1)
- # clojure-nl (2)
- # clojure-russia (19)
- # clojure-ukraine (1)
- # clojurescript (34)
- # conf-proposals (36)
- # core-async (2)
- # cursive (11)
- # emacs (2)
- # funcool (23)
- # hoplon (2)
- # incanter (4)
- # jobs (1)
- # ldnclj (19)
- # om (47)
- # onyx (5)
- # proton (12)
- # re-frame (20)
- # ring-swagger (17)
- # testing (1)
@gadfly361: If I organize my app in panels like here -> https://github.com/Day8/re-frame/wiki/A-Larger-App#larger-apps
Will I still be able to have the cljs-devtools
goodies?
@richiardiandrea I haven't played with cljs-devtools yet. I know @mikethompson is a big fan tho, and has probably tried it with the larger apps structure.
As an aside, if anyone here wants to help add a cljs-devtools option to re-frame-template that would be awesome!
@richiardiandrea: I'm puzzled by the question. There's no relationship between clj-devtools and any particular cljs library or technique. cljs-devtools just means you have a better debugging experience in devtools when you are using cljs.
Sorry i it wasn't clear, I am talking about the tracer in particular, and the fact that you can track handlers, subs and rerendered views. But I'd better try things before asking :)))
jaen: What could be the problem when a component is not properly reactive on first page load, but after a cljs-reload, (say triggered by change in the source) it functions properly? Specifically, I’m trying to modify your dropdown render function to be something like this:
:reagent-render
(fn [{:keys [value]} _]
(let [value @value]
[:div.ui.dropdown
[:h1.ui.header {:style {:margin-bottom "0"}}
[:div value [:i.dropdown.icon]]]
[:input {:type "hidden" :name "choice" :value value}]
[:
(doall (for [{:keys [value text]} choices]
(conj
^{:key (str "choice-" value)}
[:div.item {:data-value value}]
text)))]]))
So essentially, I want it to look like a header but function as a dropdown.It probably would be easier for me to understand what's going on if you had it in a repo I could clone and run; unless it's something you can't share then I understand.
I added you as a collaborator, just because I have api keys in there, and didn’t want to make the whole repo public :P
Incase anyone was curious, this turned out not to be a re-frame issue, but with reagent. The result of reagent/wrap wasn’t being properly reactive, and using jaen’s reactive wrapper hack made it work for this case, at least.
@gadfly361: you could implement something like this in your code and cljs-devtools would pick it up: https://github.com/binaryage/pure-frame/blob/master/src/re_frame/frame.cljs#L162-L170
I’m trying to set up my project to use the debugging options described on the re-frame wiki (https://github.com/Day8/re-frame/wiki/Debugging). But I’m getting the following error when I start my Cursive REPL:
Exception in thread "main" clojure.lang.ExceptionInfo: No such namespace: re-frame-tracer.core, could not locate re_frame_tracer/core.cljs, re_frame_tracer/core.cljc, or Closure namespace "re-frame-tracer.core" {:tag :cljs/analysis-error}, compiling:…
Any ideas what I’m doing wrong?