keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
eoliphant 2018-07-28T16:54:26.000074Z

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!))