This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-29
Channels
- # architecture (14)
- # beginners (184)
- # boot (25)
- # cider (23)
- # clara (9)
- # cljsjs (13)
- # cljsrn (5)
- # clojure (140)
- # clojure-austria (1)
- # clojure-dev (24)
- # clojure-greece (15)
- # clojure-italy (7)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-sanfrancisco (10)
- # clojure-spec (39)
- # clojure-uk (28)
- # clojured (1)
- # clojurescript (26)
- # core-async (3)
- # cursive (13)
- # datomic (44)
- # docs (3)
- # emacs (31)
- # events (2)
- # figwheel (4)
- # fulcro (6)
- # graphql (2)
- # hoplon (5)
- # jobs (11)
- # juxt (4)
- # keechma (19)
- # leiningen (1)
- # off-topic (8)
- # om (8)
- # onyx (18)
- # parinfer (2)
- # re-frame (18)
- # reagent (24)
- # ring (4)
- # rum (2)
- # shadow-cljs (26)
- # sql (15)
- # timbre (6)
- # vim (2)
Can query-v be passed into input signals when using the :<- [:sub]
notation?
Going to answer my own question here with no. Looking at the source:
(let [[marker vec] input-args]
(when-not (= :<- marker)
(console :error err-header "expected :<-, got:" marker))
(fn inp-fn
([_] (subscribe vec))
([_ _] (subscribe vec))))
@caleb.macdonaldblack if you want to do fancier things you can just pass a subscription function
as the first arg
@danielcompton I ended up working that out. Cheers. It’s really cool that we can do this with subs. Makes things much simpler and more efficient!
@danielcompton What is the dynamic-vec used for?
(fn [query-vec dynamic-vec]
[(subscribe [:a-sub])
(subscribe [:b-sub])])
I think it returned nil when I logged it
@caleb.macdonaldblack use of dynamic-vec is pretty much deprecated these days (because it is unneeded)
I could explain it ... but then I'd just have to tell you to forget everything I'd just said :-)
@mikethompson All good then. :thumbsup:
I’m having this error when getting the dependencies for a lein re-frame project:
Exception in thread "main" java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(cljs/util.cljc:1:1)
I googled it and this error is all over the place when building java tools, not only clojure
So it appears is a Java 9 vs figwheel issue https://github.com/bhauman/lein-figwheel/issues/612
Yeah, I think this is a pretty popular problem that is faced right now in trying to use Java9
Yep, I wrote https://www.deps.co/blog/how-to-upgrade-clojure-projects-to-use-java-9/ with a full set of upgrade instructions for Java 9 use
:jvm-opts ["-XX:+IgnoreUnrecognizedVMOptions" "--add-modules java.xml.bind"]
This should work on 7,8,9 without modification