VDP
VDP

Reputation: 6420

prevent synchronously loading of a store

I use Ext 4.1.1

I keep getting:

[Ext.Loader] Synchronously loading 'Eml.store.eml.EventSummary'; consider adding Ext.require('Eml.store.eml.EventSummary') above Ext.onReady

I added the store reference to my controller first, but the controller isn't loaded till later.. so I added it as 'requires' but no cigar.. Anyone got a clue what I'm doing wrong?

dependancy problem

Upvotes: 0

Views: 678

Answers (1)

Evan Trimboli
Evan Trimboli

Reputation: 30092

Because it doesn't get evaluated during creation, it creates the store before it ever passes the object literal to the define().

Instead, specify the store in initComponent.

Upvotes: 3

Related Questions