Fork me on GitHub
#om
<
2016-05-25
>
octahedrion09:05:40

i just upgraded to react 1.5 and now I'm getting "react.inc.js:19500 Warning: flattenChildren(...): Encountered two children with the same key, 2:$undefined. Child keys must be unique; when two children share a key, only the first child will be used."

anmonteiro09:05:18

@octo221: you need to set react-key on the factory you’re calling

octahedrion09:05:47

yeh got it, provide {:key :key}

octahedrion09:05:55

to (build-all

anmonteiro09:05:17

oh you’re using Om Now

octahedrion13:05:29

is there a guide somewhere to how to upgrade to Om Next and what's changed ?

isak14:05:38

@octo221: its very very different, best to start with some of the talks david nolen gave about it

octahedrion14:05:25

@isak: is there nothing written about it ? I prefer text it's faster

octahedrion14:05:34

cheers...is Om Next relatively stable to use ?

pheuter14:05:44

@octo221: there’s a blog series i recently started on building a mobile game using Om.next: https://medium.com/@markfayngersh/connect-lets-build-a-game-37620df1ddf7#.3uh4kt71c

pheuter14:05:15

there’s a repo to go along, but i’m also striving for grokable text

peeja15:05:34

Has anyone written anything about best practices for query keys?

peeja15:05:27

Like, how best to model your data as a queryable graph?

selfsame17:05:56

@peeja I would be interested in that - been trial and error to figure how to make ui trees with proper query/path/ident

cmcfarlen18:05:32

om/process-roots doesn't seem to support recursive queries. Specifically, move-roots assumes join map values will be a seq. Is this a known issue? I don't see an issue for this.

noonian18:05:12

@cmcfarlen: process-roots also does not support unions. I recommend not using it and writing your own custom version for that use case so you have more flexibility around how queries are re-written.

cmcfarlen20:05:14

@noonian: I read through the issues with unions. I think this is a simpler issue. If the join is recursive, then there aren't going to be further roots to migrate and move-roots can just return the accumulated results.