If I have an Ext.Container component created using Ext.define and am using animateActiveItem to push another component upon it, something like an Ext.List component is it normal behaviour for it for the sub component being pushed to be created each time it is pushed?
Within the sub component, if I add a listener for 'painted' and then do a count on the array returned from Ext.ComponentQuery.query('listcomponentpanel') the count increments every time the list component is pushed using animateActiveItem.
This had been causing trouble in an app I was working on so what I have done is added an 'erased' listener to the listcomponentpanel to call this.destroy() every time it is erased. Is this good practice ?
Are you creating a new list everytime? You need to check if the list exists and if not then create a new list. Pass the list to animateActiveItem then.