This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-10
Channels
- # aws (45)
- # bangalore-clj (16)
- # beginners (109)
- # boot (137)
- # cider (7)
- # cljs-dev (54)
- # cljsrn (22)
- # clojure (77)
- # clojure-conj (1)
- # clojure-greece (2)
- # clojure-nl (5)
- # clojure-russia (36)
- # clojure-spec (15)
- # clojure-uk (54)
- # clojurescript (118)
- # cursive (7)
- # datomic (25)
- # emacs (33)
- # hoplon (276)
- # klipse (38)
- # lein-figwheel (1)
- # leiningen (9)
- # melbourne (1)
- # off-topic (18)
- # om (98)
- # onyx (6)
- # pedestal (1)
- # perun (24)
- # re-frame (46)
- # reagent (6)
- # ring-swagger (3)
- # spacemacs (67)
- # specter (15)
- # untangled (33)
- # vim (6)
@tony.kay thanks for the release! I sent a new PR with a few adjusts
Is this incorrect?
(defui ^:once Speaker
static om/IQuery
(query [_]
[:id
:name
{:job (om/get-query Job)}])
static om/Ident
(ident [_ {:keys [id] :as args}]
[:speaker/by-id id]))
(df/load
(:reconciler @app)
[:speaker/by-id 1]
Speaker
{:marker false})
My server returns:
(defn api-read [{:keys [query request] :as env} disp-key params]
(case disp-key
:speaker/by-id {:value{:id 1 :name "foo"}}
(throw (ex-info "Invalid request" {:query query :key disp-key}))))
This results in:
:speaker/by-id {1 nil},
And in the network tab of chrome I see:
["~#cmap",[["~:speaker/by-id",1],["^ ","~:id",1,"~:name","foo"]]]
which indicates that it actually returns a name and a idHm. That looks right @mitchelkuijpers
it's intended to work with just app, is the bug I noticed. My precondition fails though
Hmm do you mean with app instead of the reconciler?
make sure you've cleaned/recompiled, but I don't see an obvious problem in your code
We hit the same bug in our application. This is a reproduction. I'll see if I can pinpoint the problem
It works with load-data so we use that for now
@tony.kay I may had found a bug on load
as well, today I was trying to load an ident and couldn't make it work with load
, seems some problem on merging, but I didn't had the chance to verify yet
@mitchelkuijpers Fixed the load bug on idents. On clojars (0.6.0-SNAPSHOT)
that was timely @wilkerlucio Just pushed the fix
@tony.kay are you thinking on removing the old load-data
entirely? I can still see it being useful, but I don't mind using untangled/load
directly (I had to use that to load ident and pass :post-mutation-params
, which currently doesn't work with load-data
)
I'm kinda considering it a trial period. We've already found two cases where load
requires a refactor. The flexibility of specifying the query without a nested join is a nice aspect to load-data