Fork me on GitHub
#om
<
2017-04-18
>
peeja19:04:54

I think I'm missing the theory behind :keys in the merge result. The default-merge causes the entire root component to queue, correct?

peeja19:04:28

It seems to me that any good merge implementation would have to, since new data may require new components to be rendered.

peeja19:04:02

It's not enough to find components which need to be queued if some of the components which need queuing may not exist yet.

ag20:04:09

@anmonteiro do you have anything good to read on how Compassus handles idents in components wrapped in a mixin?

ag20:04:25

so if I have a route and a component associated, and that component has a query with Ident, when the novelty comes back from server, it suppose to normalize data based on the Ident, right?

ag20:04:36

when novelty comes back from server and there’s a query in the root component that has Ident somewhere that data should be normalized automatically, right? you don’t have to have any custom merge fn or whatever?

ag23:04:05

I just tried with a simple om app, and it does normalize automatically when novelty comes from the back-end, if there’s a query with ident.

ag23:04:26

I can’t find a way to make Compassus respect idents though

ag23:04:17

Ok, I have figured it out… apparently this

ag23:04:38

the last sentence is quite important…

ag23:04:18

Om by default works without the second argument - Compassus needs query to be passed in that callback, otherwise Idents down the tree will be ignored and normalization won’t happen