This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-06
Channels
- # announcements (2)
- # architecture (2)
- # aws (18)
- # babashka (7)
- # beginners (149)
- # bristol-clojurians (4)
- # calva (11)
- # chlorine-clover (1)
- # cider (8)
- # clj-kondo (2)
- # cljdoc (2)
- # cljsrn (2)
- # clojure (186)
- # clojure-canada (3)
- # clojure-europe (3)
- # clojure-gamedev (5)
- # clojure-italy (1)
- # clojure-nl (13)
- # clojure-norway (4)
- # clojure-spec (25)
- # clojure-uk (32)
- # clojurescript (75)
- # core-async (2)
- # cursive (16)
- # data-science (3)
- # datomic (20)
- # docker (1)
- # emacs (26)
- # fulcro (7)
- # graphql (1)
- # incanter (1)
- # leiningen (1)
- # luminus (7)
- # malli (7)
- # mount (11)
- # off-topic (19)
- # pathom (15)
- # re-frame (9)
- # reagent (9)
- # remote-jobs (4)
- # ring-swagger (4)
- # shadow-cljs (63)
- # spacemacs (11)
- # sql (2)
- # vscode (7)
hi, does anybody know about a tutorial or demo of mount implemented on a re-frame Clojurescript SPA with config so that the application can be start/stop/reset from REPL? Closest ones I have found out so far are: 1. example included in mount's distribution https://github.com/tolitius/mount/blob/master/doc/clojurescript.md#mounting-that-clojurescript https://github.com/tolitius/mount/tree/master/dev/cljs/app it is not integrated with re-frame, and not seem to implement start/stop/reset from REPL 2. Luminus template https://github.com/luminus-framework/luminus-template integrated with re-frame, but doesn't seem to implement start/stop/reset from REPL Thanks in advance !
see if any of these examples help: https://github.com/tolitius/stater
an example of what I mean by REPL config is the one, supplied with mount:
it is implemented in clojure; what I asked about is a similar one, but for clojurescript / re-frame, as far as I have been exploring, none is supplied in mount
on the other side, examples in slater are mainly in clojure, with the exception of hubble, but even in hubble, I have not been able to found out mount implemented on clojurescript side of the example
the reset
is hooked into tools.namespace
which is a library that refreshes namespaces in Clojure. in ClojureScript you would usually use a reload library figwheel
or boot-cljs
/ boot-reload
since things happen in the browser
(defn reset
"stops all states defined by defstate and starts them again"
[]
(mount/stop)
(mount/start))
ok, so I will follow these suggestions, thank you very much for such a quick reply