Fork me on GitHub
#keechma
<
2018-07-28
>
eoliphant16:07:26

HI, I’m playing around with a keechma app. really cool, but im having an issue with hot reloading. I’m using shadow-cljs as opposed to figwhell, but I’ve verified that the reload function is being called. I get ‘restart’ printed to the console, when I make an update, but I don’t see corresponding changes in the UI code unless i refresh the page. I’ve verified that the reload code will be executed

(defn dev-setup []
  (when ^boolean js/goog.DEBUG
    (enable-console-print!)
    (println "dev mode")))

(defn reload []
  (let [current @running-app]
    (println "RESTART")
    (if current
      (app-state/stop! current start-app!)
      (start-app!))))

(defn ^:export main []
  (dev-setup)
  (start-app!))