PDA

View Full Version : items vs items.items at different stage of component lifecycle



jchau
20 Sep 2012, 6:30 AM
I find it SUPER confusing that before Render, this.items is an array of configs/objects but after render, this.items is a Util.MixCollection. It's impossible to make generic methods that interact with items because you never know what type of object items is. What's the reasoning behind this?

mitchellsimoens
24 Sep 2012, 12:47 PM
The reasoning is there is no reasoning. Meaning that the array hasn't been transformed into a MixedCollection yet.