Results 1 to 3 of 3

Thread: [ext-4.2.2.1144] Store is loaded twice if autoLoad and remoteSort is set to TRUE

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2009
    Posts
    33

    Default [ext-4.2.2.1144] Store is loaded twice if autoLoad and remoteSort is set to TRUE

    A store is loaded twice during object construction if autoLoad and remoteSort is set to TRUE.

    1)
    Code:
    Ext.define('Ext.data.AbstractStore', {
        applyState: function(state) {
            ...
            if (me.autoLoad && (me.remoteSort || me.remoteGroup || me.remoteFilter)) {
                if (me.autoLoad === true) {
                    me.reload();
                } else {
                    me.reload(me.autoLoad);
                }
            }
    2)
    Code:
    Ext.define('Ext.data.Store', {
        constructor: function(config) {
            ...
            else if (me.autoLoad) {
                
                Ext.defer(me.load, 1, me, [ typeof me.autoLoad === 'object' ? me.autoLoad : undefined ]);
            }
    I assume the code in Ext.data.Store should be look like below to prevent loading the store twice while construction time.

    Code:
    Ext.define('Ext.data.Store', {
        constructor: function(config) {
            ...
            else if (me.autoLoad) {
                if (!(me.remoteSort || me.remoteGroup || me.remoteFilter)) {
                   Ext.defer(me.load, 1, me, [ typeof me.autoLoad === 'object' ? me.autoLoad : undefined ]);
                }
            }

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. This sounds like this known issue:
    http://www.sencha.com/forum/showthread.php?264958

    If you believe it to be a separate problem, please post a test case which reproduces the issue.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2009
    Posts
    33

    Default

    You're right, it's duplicate to EXTJSIV-10029. Maybe the mentioned code above will fix this problem.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •