This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-28
Channels
- # beginners (8)
- # boot (49)
- # cljs-dev (29)
- # cljsrn (9)
- # clojure (238)
- # clojure-dev (3)
- # clojure-gamedev (1)
- # clojure-italy (7)
- # clojure-norway (11)
- # clojure-russia (39)
- # clojure-sanfrancisco (3)
- # clojure-spec (116)
- # clojure-sweden (2)
- # clojure-uk (53)
- # clojurescript (90)
- # cursive (13)
- # datomic (12)
- # defnpodcast (2)
- # dirac (1)
- # emacs (11)
- # figwheel (2)
- # hoplon (15)
- # jobs (3)
- # jobs-discuss (48)
- # keechma (1)
- # klipse (4)
- # leiningen (16)
- # luminus (4)
- # lumo (49)
- # mount (10)
- # off-topic (1)
- # om (13)
- # onyx (15)
- # pedestal (67)
- # perun (1)
- # planck (16)
- # powderkeg (33)
- # proton (1)
- # protorepl (2)
- # re-frame (16)
- # reagent (4)
- # ring (9)
- # ring-swagger (10)
- # rum (5)
- # slack-help (1)
- # spacemacs (1)
- # uncomplicate (15)
- # untangled (19)
- # yada (58)
Does mount have a kind of ls
of all mounted states? Something that could look like:
(mount/ls)
{#'app.config/config #'app.nyse/conn
#'app.sms/send-sms send-sms
...}
so one can check which states are loaded with which values.=> (require '[mount.tools.graph :as g])
=> (g/states-with-deps)
({:name "#'app.conf/config", :order 1, :status #{:started}, :deps #{}}
{:name "#'app.db/conn",
:order 2,
:status #{:started},
:deps #{"#'app.conf/config"}}
{:name "#'app.www/nyse-app",
:order 3,
:status #{:started},
:deps #{"#'app.conf/config" "#'app.db/conn"}}
{:name "#'app.example/nrepl",
:order 4,
:status #{:started},
:deps #{"#'app.conf/config"}})
oh, cool! Much better than what I had in mind. Perfect. Thx.
there is also:
=> (mount/running-states)
#{"#'app.www/nyse-app" "#'app.example/nrepl" "#'app.conf/config" "#'app.db/conn"}
it is for .clj
, so well, wicked-awesome 🙂
Unfortunately I can't remember who it was, but he/she asked me some weeks ago how mount-lite 2.0
can play nice with the tools.namespace
contrib library. The question was about refresh
ing the project, without restarting all the states when only a few might be reloaded.
Today I added a new extension to mount-lite 2.0
that helps with this: https://github.com/aroemers/mount-lite/blob/2.x/src/mount/extensions/refresh.clj