Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default Ext.Loader stalls on circular referenced components

    Ext.Loader stalls on circular referenced components


    I am using the requires config to dynamically load my components on demand. I ran into one problem where the loader would stall if the component chain has a circular reference.

    For example (pseudo-code):
    Code:
    Ext.define('Grid_A', {
      extend:'Grid'
      requires: ['Window_A']
      initComponent: function(){
        this.callParent(args);
        Ext.create('Window_A').show();
      }
    });
    
    Ext.define('Window_A', {
      extend:'Window'
      requires: ['Grid_A']
      constructor: function(){
        Ext.apply(this,{ items: [ 'Grid_A' ] });
        this.callParent(args);
      }
    });
    
    Ext.define('Panel_A', {
      extend:'Panel'
      requires: ['Grid_A']
      constructor: function(){
        Ext.apply(this,{ items: [ 'Grid_A' ] });
        this.callParent(args);
      }
    });
    This is not a very common occurrence but in the effort of component re-use, it is possible. If I change the Window_A requires to uses, then it works.

  2. #2
    Sencha - Sencha Touch Dev Team Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    Use ext-dev.js during development. Ext.Loader has built-in deadlock detection so it will throw a very useful message and let you know the full deadlock path.
    Sencha Touch Lead Architect

Thread Participants: 1