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
https://github.com/omcljs/om/blob/master/src/main/om/next.cljs#L639-L640
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