om-next

joseph 2016-07-19T18:54:19.000003Z

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

joseph 2016-07-19T18:54:47.000004Z

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.`

joseph 2016-07-19T18:55:55.000005Z

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?

joseph 2016-07-19T18:58:41.000006Z

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

mpisanko 2016-07-19T23:16:40.000007Z

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