Synchronously loading warning when using a template
Posted: Tue Oct 22, 2019 12:18 pm
Hello,
We've got a bit of an issue with synchronously loading when a classes tpl config is using Ext.create. Given something like the following:
When I run a test which creates this column siesta will give the following warning:
Even though it's already required. I think this may be something to do with it executing the Ext.create when it's parsing the markup before the requires can be assessed. Is there any way of structuring a test so that this no longer gives a warning?
We've got a bit of an issue with synchronously loading when a classes tpl config is using Ext.create. Given something like the following:
Ext.define('MyApp.column.MyCol', {
extend: 'Ext.grid.column.Column',
requires: ['MyApp.template.MyTemplate'],
editor: {
tpl: Ext.create('MyApp.template.MyTemplate')
}
});
[W] [Ext.Loader] Synchronously loading 'MyApp.template.MyTemplate'; consider adding Ext.require('MyApp.template.MyTemplate') above Ext.onReady