This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-08
Channels
- # admin-announcements (3)
- # arachne (1)
- # aws (2)
- # beginners (10)
- # boot (287)
- # cider (5)
- # clara (2)
- # cljs-dev (150)
- # cljsjs (2)
- # clojure (99)
- # clojure-austin (1)
- # clojure-brasil (1)
- # clojure-dev (13)
- # clojure-greece (55)
- # clojure-japan (1)
- # clojure-nl (2)
- # clojure-russia (24)
- # clojure-spec (184)
- # clojure-taiwan (1)
- # clojure-uk (45)
- # clojurescript (55)
- # clojurex (1)
- # cursive (20)
- # datascript (16)
- # datomic (1)
- # devcards (4)
- # events (10)
- # figwheel (1)
- # funcool (7)
- # hoplon (48)
- # immutant (1)
- # jobs (6)
- # lambdaisland (2)
- # lein-figwheel (19)
- # mount (36)
- # off-topic (37)
- # om (16)
- # om-next (17)
- # onyx (29)
- # planck (53)
- # proton (1)
- # pure-frame (1)
- # re-frame (40)
- # reagent (44)
- # remote-jobs (1)
- # ring (2)
- # robots (2)
- # rum (5)
- # slack-help (4)
- # spacemacs (27)
- # specter (82)
- # test-check (18)
- # test200 (1)
- # untangled (17)
hey everyone. I'm suddenly finding myself confused about om.next sends and wondering if something has changed (so much has) in the alpha versions since the fall
looks like gather-sends calls the parser for each remote
what i'm seeing, is that the :send function is being called with the result from parser methods
shouldn't the actual query be sent, with queries that return values being filtered out?
i guess i'm confused as to the intention behind which parts of the query are being sent, and what exactly causes the send
for example. i have two a query like
[{:client/config (om/get-query Search)}
:user/authenticated
:contact-groups/list
(list :contact-group.contacts/list {:front/name "Tutor"})]
:user/authenticated returns a map in the cljs parser, the following two queries return empty lists and should be sent to the remote
i'd expect :send to be called with
[:contact-groups/list
(:contact-group.contacts/list {:front/name "Tutor"})]
but instead, i see
{:user/authenticated
{:db/id 17592186045434,
:user/name "Dylan Butman",
:user/scopes
[{:db/id 17592186045425, :db/ident :user.scopes/user}
{:db/id 17592186045427, :db/ident :user.scopes/superuser}],
:user/uid "pleasetrythisathome"},
:contact-groups/list [],
:contact-group.contacts/list []}
which actually makes sense looking at gather sends
but definitely isn't what the backend parser is looking for
alright figured it out. i was wrapping the parse method and wasn't passing target along when it was present
that could definitely use some documentation
glad i understand that code now though
thanks for rubber ducking channel