om-sync is an experimental proof of concept. The tag is just a way to
classify interesting transactions. Personally I think it's a bit
half-baked,  I would rather see something less half baked based on the
something like DataScript's txReport.

David


On Sat, May 24, 2014 at 7:09 PM, Artem Chistyakov <
[email protected]> wrote:

> Hello everyone,
>
> I’ve been playing with Om during last few weeks. The learning curve is a
> bit tough, but I love the design and it generally feels like it’s worth the
> time. However I’m a bit confused by a behavior present in the intermediate
> tutorial. While reading it, I noticed that in the final version of the code
> the author passes a vector as a tag to om/transact!:
>
> (om/transact! classes [] #(conj % new-class) [:create new-class])
>
> From looking at the Om docs I got "tag is optional information to tag the
> transaction. tag should be either a keyword or a vector whose first element
> is a keyword". I first thought that om-sync uses the second element of a
> vector tag as a value to send to the server, but my understanding of the
> om-sync source says that it’s not the case.
>
> Long story short, my questions are:
> 1. When is it useful to tag transactions with vectors?
> 2. What the client code in the Intermediate Tutorial actually sends to a
> server on :create — the entire coll or just a new class?
>
> Best regards,
> Artem Chistyakov
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to