Fork me on GitHub
#om
<
2017-03-17
>
therabidbanana00:03:19

Just to verify - should I expect to get back resolutions to both tempids for my widget requests if I have a transaction with two mutations named the same thing? Or does one end up overriding the other?

anmonteiro00:03:11

@therabidbanana hah, I was thinking about that behavior a week or 2 ago

anmonteiro00:03:27

yeah, the result of mutations is a map so the same symbol will be overridden

therabidbanana00:03:53

Okay, so it's not an underlying bug in untangled, but just how the om parser itself works right now?

therabidbanana00:03:50

I can pretty easily create a new mutation to work around it, just seemed straightforward to map over my list of tempids (and other parameters) to create a combined transaction rather than a new mutation

anmonteiro00:03:01

it’s om next behavior

anmonteiro00:03:20

would have to think about whether it’s a bug or not

therabidbanana00:03:57

Yeah - I could see it going either way. It's just that I expected it to work because it felt like it should with transactions being data and all. 🙂

therabidbanana00:03:51

But in the end it is probably encouraging me to a better pattern of a combined mutation to represent this case, so I can see it going either way

foobar10:03:19

Any thoughts on the next steps for this PR ? https://github.com/omcljs/om/pull/857 The aim is to allow dynamic queries (i.e. set-query for datascript backed state) The next step is to integrate with get-query, set-query, thoughts/comments welcome.

foobar12:03:58

What is the :component used for in query metadata?

baptiste-from-paris13:03:43

hello guys, this is an article I just wrote on making draggable elements with om.next => https://medium.com/@baptistedupuch/building-drag-and-drop-elements-with-om-next-836cff477b72#.14m1zl4sv

levitanong14:03:10

Is there a link to a running demo/repo of this piece? I’d like to see how it looks. 🙂

baptiste-from-paris15:03:28

hey nope, was “lazy” but I should build a github pages

baptiste-from-paris15:03:41

have you had the time to read it ?

levitanong17:03:42

I haven’t had the time to read it in detail, sorry! I scanned it though, and found that it is of interest to me.

baptiste-from-paris13:03:11

please give me feedbacks as I am still new to om.next

peeja18:03:31

@foobar The :component is used for normalization: when a component class has an ident, the data that part of the query fetches is moved into a table and referenced with a link.

peeja18:03:47

It may be used for other things too, but that one comes to mind