This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-18
Channels
- # boot (42)
- # cider (26)
- # cljs-dev (6)
- # cljsrn (6)
- # clojure (119)
- # clojure-berlin (3)
- # clojure-dev (2)
- # clojure-nl (1)
- # clojure-russia (38)
- # clojure-spec (1)
- # clojurescript (44)
- # component (3)
- # cursive (1)
- # data-science (2)
- # datomic (19)
- # dirac (60)
- # emacs (12)
- # figwheel (2)
- # hoplon (13)
- # iot (4)
- # keechma (2)
- # klipse (38)
- # leiningen (5)
- # luminus (1)
- # lumo (1)
- # off-topic (6)
- # om (2)
- # om-next (4)
- # onyx (21)
- # perun (79)
- # reagent (32)
- # untangled (39)
- # vim (36)
- # yada (1)
Has anyone had success using component with cljs and reagent? I can render correctly on load. However, every time I make a code change and the cljs code is reloaded, it seems the html head and body are wiped clean. I’m using boot with boot-cljs and boot-reload
@chooie: if you could paste your startup code that might help. Also maybe more a question for #boot than here but we'll see :)
Thanks Martin. I figured out the issue - I was calling this function on every reload:
(defn hook-browser-navigation!
[]
(doto (History.)
(events/listen
HistoryEventType/NAVIGATE
(fn [event]
(when (not-empty (.-token event))
(secretary/dispatch! (.-token event)))))
(.setEnabled true)))
This was because I started calling this function in the routing component’s start function during a refactor to make my code into components. I wasn’t able to see the error properly because I believe that componentizing the frontend of the app has somehow messed with the error reporting…more digging to do