This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-02
Channels
- # arachne (1)
- # bangalore-clj (3)
- # beginners (4)
- # boot (6)
- # cider (3)
- # cljs-dev (14)
- # cljsrn (2)
- # clojure (309)
- # clojure-ireland (1)
- # clojure-russia (7)
- # clojure-spec (10)
- # clojure-uk (5)
- # clojureremote (2)
- # clojurescript (68)
- # cursive (7)
- # emacs (7)
- # luminus (3)
- # lumo (21)
- # off-topic (14)
- # om (1)
- # onyx (53)
- # perun (3)
- # re-frame (4)
- # slack-help (14)
- # unrepl (56)
- # untangled (3)
Hi There is some reason to not explicit the state like redux? (get state from props ...)
@rb1719 Just to be clear (slurp "
will read the single HTML file (and not anything loaded by that HTML, like CSS or JS etc ... so I guess I'm pedantically pointing out that slurp won't get the website, just one file) ... the equivalent in the browser will be something from Google's Closure library:
https://google.github.io/closure-library/api/goog.net.XhrIo.html
See how to use it here:
https://groups.google.com/forum/#!topic/clojurescript/_Ck1dGzDPzY
or perhaps the more modern
https://google.github.io/closure-library/api/goog.net.FetchXmlHttp.html
BUT forget the lowlevel above, you are probably better using a library like cljs-ajax
@souenzzo within re-frame we don't put state into components .... all state is stored in app-db
. This state is obtained via subscribe
. In addition, state can also be provided in props ... but such values are obtained as functional parameters