This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-29
Channels
- # admin-announcements (2)
- # beginners (10)
- # boot (253)
- # cider (11)
- # cljs-dev (26)
- # cljsjs (21)
- # cljsrn (7)
- # clojure (87)
- # clojure-berlin (13)
- # clojure-dusseldorf (5)
- # clojure-greece (7)
- # clojure-poland (11)
- # clojure-russia (189)
- # clojure-spec (31)
- # clojure-uk (86)
- # clojurescript (89)
- # cursive (15)
- # datavis (2)
- # datomic (57)
- # devcards (3)
- # dirac (92)
- # editors-rus (3)
- # emacs (4)
- # events (1)
- # funcool (30)
- # hoplon (3)
- # jobs-rus (6)
- # leiningen (1)
- # luminus (12)
- # mount (25)
- # off-topic (5)
- # om (43)
- # onyx (41)
- # perun (1)
- # proton (2)
- # protorepl (7)
- # re-frame (17)
- # reagent (34)
- # ring (13)
- # specter (1)
- # spirituality-ethics (1)
the example cljs app in https://github.com/tolitius/mount/blob/0825ad2ed085b73b7ae989b4382ce4e0376e4be3/dev/cljs/app/example.cljs
names the app.audit-log/log
state as a string like this: (js/setTimeout #(mount/stop-except "#'app.audit-log/log") 500)
@jiangts: the reason it is a string is because in :advanced
cljs compilation mode, #'app.audit-log/log
(as a "non string") would not work, since the app.audit-log
namespace will be "optimized" into something like a.b
, hence the state won't be found. whereas a string version of it will never change.
is there a reason you would need them as non strings?
ah, gotcha. I was actually hoping to conceal some of my namespaces in the resulting output
usually it is useful to have explicit "ns/state", to avoid confusion what comes from where
haha, using it in clojurescript to manage all sorts of things ranging from dom event listeners to setIntervals to setTimeouts to atom watches
i'm writing a plugin javascript application where all the listeners attached to the DOM/js state need to be start-able and stoppable