This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-08
Channels
- # adventofcode (240)
- # beginners (87)
- # boot (4)
- # cider (27)
- # cljs-dev (20)
- # cljsrn (24)
- # clojure (365)
- # clojure-argentina (1)
- # clojure-brasil (4)
- # clojure-dev (12)
- # clojure-greece (65)
- # clojure-india (1)
- # clojure-italy (15)
- # clojure-japan (1)
- # clojure-losangeles (1)
- # clojure-madison (4)
- # clojure-poland (3)
- # clojure-russia (5)
- # clojure-spec (3)
- # clojure-uk (105)
- # clojurescript (27)
- # core-async (1)
- # core-logic (3)
- # cursive (61)
- # datomic (68)
- # devcards (4)
- # docs (27)
- # duct (67)
- # emacs (15)
- # events (1)
- # fulcro (8)
- # graphql (50)
- # lein-figwheel (1)
- # lumo (15)
- # numerical-computing (1)
- # off-topic (77)
- # om (3)
- # onyx (5)
- # parinfer (3)
- # planck (2)
- # portkey (5)
- # re-frame (4)
- # reagent (16)
- # ring (14)
- # rum (3)
- # shadow-cljs (17)
- # vim (1)
Hi all, nice to meet you. I have some question about installing figwheel with pedestal and system map from component. My code looks like this.
(require '[clojure.tools.namespace.repl :as ns-repl])
(require '[figwheel-sidecar.system :as fw-system])
(require '[com.stuartsierra.component :as component])
(defonce dev-system (atom nil))
(defn init-figwheel []
(reset! dev-system
(assoc (app-system/init-dev-system (config))
:figwheel-system (fw-system/figwheel-system (fw-system/fetch-config))
:css-watcher (fw-system/css-watcher {:watch-paths ["resources/public/fe/css"]}))))
(defn cljs-repl []
(fw-system/cljs-repl (:figwheel-system @dev-system)))
(defn start []
(swap! dev-system component/start-system))
(defn go-cljs []
(init-figwheel)
(start))
(defn stop []
(swap! dev-system component/stop-system))
(defn refresh
[]
(stop)
(ns-repl/refresh))
The problem are, everytime I changed the states, the UI refresh to initial page. The second problem when I invoked (refresh) it return error like
#error{:cause "camel-snake-kebab.internals.alter-name",
:via [{:type clojure.lang.Compiler$CompilerException,
..}
Thank you 🙂