[cljs example app]: adding a stop states timeout back
This commit is contained in:
parent
8cedfaa60a
commit
64a91625aa
2 changed files with 1 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
|||
(mount/start)
|
||||
|
||||
;; time to establish a websocket connection before disconnecting
|
||||
;; (js/setTimeout #(mount/stop-except "#'app.audit-log/log") 500)
|
||||
(js/setTimeout #(mount/stop-except "#'app.audit-log/log") 500)
|
||||
|
||||
;; time to close a connection to show it in audit
|
||||
(js/setTimeout #(show-log) 1000)
|
||||
|
|
|
|||
|
|
@ -129,9 +129,6 @@
|
|||
(up name state (atom #{})))
|
||||
@inst)))
|
||||
|
||||
;; #?(:clj
|
||||
;; (println (str "[mount]: here is what I see running: " @@#'mount.core/running
|
||||
;; " is " state " running? [" @@#'mount.core/running state)))
|
||||
#?(:clj
|
||||
(defmacro defstate [state & body]
|
||||
(let [[state params] (macro/name-with-attributes state body)
|
||||
|
|
|
|||
Loading…
Reference in a new issue