This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-19
Channels
- # adventofcode (4)
- # beginners (80)
- # boot (4)
- # cbus (2)
- # cider (62)
- # clara (18)
- # cljs-dev (8)
- # cljsrn (10)
- # clojure (139)
- # clojure-brasil (3)
- # clojure-dev (27)
- # clojure-italy (1)
- # clojure-russia (3)
- # clojure-spec (4)
- # clojure-uk (47)
- # clojurescript (102)
- # core-async (10)
- # cursive (7)
- # datomic (71)
- # emacs (32)
- # fulcro (99)
- # funcool (1)
- # hoplon (3)
- # jobs (1)
- # jobs-discuss (6)
- # jobs_rus (2)
- # leiningen (3)
- # luminus (2)
- # lumo (14)
- # mount (7)
- # off-topic (19)
- # re-frame (25)
- # ring-swagger (4)
- # rum (3)
- # shadow-cljs (142)
- # specter (2)
- # sql (16)
- # timbre (1)
- # vim (3)
in query-id
, what is a qualifier?
@levitanong see Dynamic queries. It allows you to have more than one instance of a given class that has a query from other instances of the same class.
Fulcro's dynamic query system allows changing the query at runtime. It defaults to class-wide, but qualifier lets you target instances.
@tony.kay thanks! is there a special gotcha for dynamic queries on a union query? I’ve been playing around with it, and i’ve been getting some errors.
Okidoki!
@tony.kay i added the fulcro router to my app and now i’m working on adding HTML5 URL routing, in the book i know you said > We do not provide direct support for this, since your application will need to make a number of decisions that really are local to the specific app
but do you think there should be something like the easy server that makes routing decision for you?
yes i’m using that as an example
yes i totally understand that
yes, like the easy server
just a thought
but then again maybe routing is too open ended for that?
that's in the issues list already...the one about integrating route parsing with the routers
oh cool
yeah that would be even better
that would eliminate the "routing tree" as a separate construct, and would make it possible to mostly automate the route handling
thinking about splitting routing, bootstrap, and forms into a UI library again...these kinds of features probably belong in add-on libraries.
always torn on that...bootstrap was a mistake to integrate...it would just be better as its own thing
why split routing and forms? if someone doesn’t use them, don’t they essentially vanish?
and it’s not like they bring in other dependencies right?
that's the rub. part of it is just grokking everything that is there. and I'm wanting to simplify forms, so having it be a separate library and then make a new library that improves on it seems nice.
i see
the down-side is separate maintenance, which was my motivation for combining them to begin with
right, maintaining separate libs is a pain
we have several apps that talk to each other at AdStage and i sometimes wish we had just put them all in the same repo
hi @tony.kay, trying out your new shadow-cljs template. before, I would run it via cider, run (go)
and then (start-figwheel)
, then visit localhost:3000
where the webserver eventually serves the webapp. I’m aware that figwheel isn’t a shadow-cljs thing, so I’m at a loss at what to do after running (go)
the same embedding would be possible with shadow-cljs but the recommended thing would be to run shadow-cljs watch main
independently
@thheller would shadow-cljs also have a space to put jvm-opts?
okay, great. ’cause i’ve been trying to run the shadow-cljs from lein, and since i’m on java 9, i’m getting a bunch of errors i shouldn’t be getting.
So i’ll try placing those options in the shadow-cljs.edn with the workarounds i’m using for java 9
yeah, that’s what i have so far
but oddly enough the error is still happening
maybe it’s time i figured out how to downgrade. 😛
does not appear so.
yeah that’s what i have
Exception in thread "main" java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(cljs/util.cljc:1:1)
at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
the rest is elided
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:69)
so in my other project, that’s working fine in figwheel
haha, probably simpler to just downgrade to java 8
lemme check
nope, it doesn’t
doesn’t seem to be there either 😮
thanks for the help though 🙂
bumping to fulcro 2.1.2 and using the builtin router (instead of our legacy way of doing things) gave us a 2X speed improvement on route transitions!
@levitanong just checked. it is actually called :java-opts
in project.clj
. not :jvm-opts
@thheller well that’s mad, my other project is on :jvm-opts. has there been an API change in leiningen? o_O
perhaps. anyway, good thing one can install several versions of java on a machine
and just set the active version on a session
but I still can’t start properly on java9. no idea why java8 doesn’t get this error since its clojure not java Wrong number of args (0) passed to: core/juxt
that is indeed an odd error o_O
@levitanong just released [email protected]
which now properly runs on Java9 provided the --add-modules
opt is set. not doing that automatically yet.
oh wow, thanks, @thheller!
oh btw, i noticed that if the name of the project in the template had a dash, it would generate javascript initialization code that includes the dash instead of an underscore