Fork me on GitHub
#om-next
<
2016-07-19
>
joseph18:07:19

hi, I am trying om-next to create a new project, and I used to use version alpha32, and today upgrade to alpha40

joseph18:07:47

but it comes to the react warning message, flattenChildren(...): Encountered two children with the same key, .$undefined`. Child keys must be unique; when two children share a key, only the first child will be used.`

joseph18:07:55

it seems it comes from the upgrade of react from 0.14 to 15, but I checked the examples of om-next, it does not set the react key frequently...what's the trick here?

joseph18:07:41

currently, I created the components following the examples, use defui and factory, but it always comes the react flattenchildren message, even I change the content of component to the simple text string

mpisanko23:07:40

@joseph: you might want to try adding :keyfn to factory: https://github.com/omcljs/om/wiki/Documentation-%28om.next%29#factory