This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-23
Channels
- # aws-lambda (5)
- # beginners (212)
- # boot (3)
- # cider (130)
- # cljs-dev (24)
- # clojars (2)
- # clojure (287)
- # clojure-dusseldorf (23)
- # clojure-italy (11)
- # clojure-russia (10)
- # clojure-spec (9)
- # clojure-uk (45)
- # clojurescript (59)
- # core-async (1)
- # cursive (13)
- # datascript (1)
- # datomic (46)
- # emacs (12)
- # events (9)
- # fulcro (196)
- # graphql (3)
- # hoplon (79)
- # jobs (5)
- # jobs-discuss (7)
- # jobs-rus (2)
- # keechma (26)
- # keyboards (9)
- # leiningen (2)
- # luminus (9)
- # off-topic (20)
- # om-next (1)
- # onyx (15)
- # re-frame (16)
- # reagent (18)
- # reitit (1)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (13)
- # sql (135)
- # unrepl (46)
- # vim (1)
- # yada (23)
It's a little bit oversimplified, but the idea is that value only got dereferenced once and than never changes.
my hunch is that it's because multimethods are not fn?
+user=> (defmulti foo identity)
#'user/foo
+user=> (fn? foo)
false
which means the simplest workaround is to use (fn [& args] (apply foo args))
which is fn? and that should dispatch properly
as an aside I spent too long confused by your defmethod until I realized it was missing the multifn
But in the render function they use fn? https://github.com/reagent-project/reagent/blob/27be89297cee1034b45800a7b6811b530e51b59e/src/reagent/dom.cljs#L43
Hello all, I used the https://github.com/reagent-project/reagent-template and I finished it. So, is there any way to use it as a .jar to deploy to customer?
are you using wrap-resource or wrap-file?
the problem with wrap-file is that when you make an uberjar, the file doesn't exist on disk, if you change that to wrap-resource it will still find that resource inside the jar