I'm running into a problem I have a store that I need to load before my Applications ViewPort is called. But when I have
autoCreateViewPort : true
My store is load after the ViewPort which won't work. I need to load the current user Model or Store before my applications ViewPort is rendered. Since my ViewPort loads panels the uses data from the Store. Any ideas on show I can make sure the store loads before the application ViewPort is created and displayed?
You can insert a Ext.onReady
block and within that
Ext.application
within that functionload
event, with the option { single: true }
and the function above as the callbackI never tested it but that should work.
Another (and recommend) option is to use your own viewport and load the store within that. There you can track the load operation the same way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With