View Full Version : [CLOSED] [2.1.0] List events fire before store data is loaded and rendered.

8 Nov 2012, 6:38 AM
I have a list that uses a store, and in ST2.0.0, the initialize event only ever fired after the store was loaded.

In ST2.1.0, the initialize fires *before* the store is loaded and thus before any list items are rendered.

I'm using the initialize event to do processing of the list rendered list items, and I now have no good way of attaching to that event, it seems.

8 Nov 2012, 6:54 AM
The initialize event says this in the API Docs:

Fires when the component has been initialized

So the initialize event should not wait for the store data to load or anything. Have you tried the refresh event?

8 Nov 2012, 7:49 AM
'refresh' is also too early, but the 'updatedata' event fires exactly when I need it to, and semantically, it makes sense to apply my post-processing whenever the data changes.

This *is* a change from ST2.0.0, but it's not a bug. If anything it might be a bugfix.

8 Nov 2012, 8:09 AM
Actually, this is an issue.

updatedata never fires, and refresh fires too early.