This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-11
Channels
- # beginners (132)
- # boot (2)
- # cider (17)
- # cljs-dev (6)
- # cljsrn (24)
- # clojure (134)
- # clojure-austin (2)
- # clojure-dusseldorf (11)
- # clojure-france (1)
- # clojure-greece (27)
- # clojure-italy (17)
- # clojure-madison (1)
- # clojure-russia (31)
- # clojure-serbia (1)
- # clojure-sg (2)
- # clojure-spec (30)
- # clojure-uk (66)
- # clojurescript (73)
- # core-async (2)
- # cursive (8)
- # data-science (2)
- # datomic (23)
- # dirac (8)
- # emacs (18)
- # gsoc (1)
- # hoplon (36)
- # immutant (26)
- # leiningen (6)
- # off-topic (21)
- # om (19)
- # onyx (6)
- # other-languages (1)
- # pedestal (3)
- # proton (2)
- # random (1)
- # re-frame (1)
- # reagent (2)
- # remote-jobs (2)
- # ring-swagger (8)
- # rum (21)
- # slack-help (1)
- # spacemacs (4)
- # specter (16)
- # untangled (6)
cp: in your parser mutation function, you can return a modified ast
@dehli: so return something like this: {:remote (assoc (:ast env) :params (deref (:state env))}
that would attach the entire app state to the remote mutation.. but you could cut that down
I'm struggling with defmacro
to wrap defui in om.next. it's more of a cljs doubt, but perhaps some has already seems this here: java.lang.Object does not declare method called render
. Was thinking something along:
(defmacro defcomponent [vname cfg & body]
`(do
(om/defui ^:once ~(symbol vname)
Object
~@body)))
anyone using such wrappers?macro over a macro, if you are feeding (render [this]..) into the body then maybe try om/ui
that's almost the same, just render.
ok thanks.
I have a problem with getting the data from the server normalized when I’m using compassus. If I just mount the app with om/add-root! and point to my root component the server response gets normalized but when I mount it via compassus/mount! the server response isn’t. I have figured out that the problem is that the root query isn’t correct when using compassus thus is doesn’t get normalized, but how am I suppose to do it? Here is my core.cljs as a reference: https://gist.github.com/snichme/101600b849dc7bcab17877a3310d4ad2
@snichme you're not showing your send function, but I suspect you're not passing the query as an argument in the send callback
Opened this which will allow you not to pass a query https://github.com/compassus/compassus/issues/29
Sorry, my send function is the same as the one you use in your fullstack example: https://github.com/anmonteiro/om-next-fullstack/blob/master/src/shared/todomvc/util.cljc#L18
@snichme right, so try passing the query (`remote`) as the 2nd arg to cb
awesome
So with compassus, how do you do to route to a specific item with id, for example /posts/123 I want to render the post with id 123 but I cannot setup ident routes for all because they are dynamic. Are there any examples of how to do this?
Are there plans to get Om Next out of alpha? It’s a wonderful framework that I use in production everyday. Just seems strange that it’s still in alpha.