This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-02
Channels
- # beginners (98)
- # bigdata (1)
- # bitcoin (1)
- # boot (32)
- # cider (20)
- # cljs-dev (57)
- # cljsrn (130)
- # clojure (93)
- # clojure-dusseldorf (1)
- # clojure-germany (1)
- # clojure-greece (3)
- # clojure-italy (2)
- # clojure-russia (203)
- # clojure-spec (14)
- # clojure-uk (50)
- # clojurescript (127)
- # css (7)
- # cursive (6)
- # data-science (1)
- # datomic (4)
- # emacs (1)
- # events (1)
- # fulcro (8)
- # funcool (12)
- # graphql (7)
- # jobs (1)
- # lein-figwheel (2)
- # luminus (2)
- # off-topic (7)
- # om (16)
- # onyx (4)
- # parinfer (17)
- # pedestal (6)
- # portkey (36)
- # proton (3)
- # re-frame (10)
- # shadow-cljs (140)
- # spacemacs (12)
- # specter (1)
- # sql (1)
- # vim (10)
- # yada (10)
there are some in the sources, I think
I found that just breaking out the registration from the handler function has many benefits, including the ability to add a docstring
So,
(defn my-fun
"my-doc"
[]
…)
(reg-event-db my-fun)
having a bit of trouble phrasing this question right ... I have an [initialize-db]
fx-event that fires an xhr request to nab some CSV. It needs a URL. This is easy when it's just local, as /csv/my.csv
will work fine. But when I'm mounted at a different root on Tomcat, it needs to be /my-war-file/csv/my.csv
, and it seems like just csv/my.csv
doesn't work. Can anyone tell me the normal-ish way to deal with this?