This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-06
Channels
- # architecture (2)
- # aws (6)
- # bangalore-clj (3)
- # beginners (7)
- # boot (29)
- # cider (26)
- # cljs-dev (52)
- # cljsrn (1)
- # clojure (249)
- # clojure-dev (9)
- # clojure-italy (2)
- # clojure-norway (3)
- # clojure-russia (178)
- # clojure-uk (30)
- # clojureremote (6)
- # clojurescript (91)
- # core-async (4)
- # cursive (8)
- # datascript (3)
- # datavis (1)
- # datomic (6)
- # emacs (3)
- # figwheel (2)
- # hoplon (14)
- # incanter (6)
- # luminus (8)
- # mount (7)
- # off-topic (22)
- # om (25)
- # onyx (41)
- # pedestal (7)
- # re-frame (9)
- # ring (1)
- # spacemacs (4)
- # sql (1)
- # uncomplicate (1)
- # unrepl (37)
- # untangled (90)
- # yada (77)
Quick question: Does it make sense to use mount in a figwheel environment? If so, how do mount start and stop play with figwheel’s recommended use of defonce? Probably a stupid question, I know!
@grumplet I mostly use https://github.com/adzerk-oss/boot-reload but as far as figwheel goes, whenever the page / namespace reloads, mount would stop/start (i.e. restart) corresponding states. for example, in case you have a web socket connection, and you changed a namespace where this connection is defined, mount will reconnect on reload. In case you load something from the server and keep it within a mount state, mount will reload it in case a namespace (that state belongs to) is reloaded. there are also options to suggest mount not to restart / reload certain states: https://github.com/tolitius/mount#recompiling-namespaces-with-running-states