Results 1 to 3 of 3

Thread: store load twice

  1. #1

    Default store load twice

    Hi,
    Now I did the production version of my app and store load twice. I have on Application.js
    Code:
    Ext.define('Ext.data.Store', {    override :'Ext.data.Store',
        autoLoad: false
    });
    but have error error.jpg

    if I write like this
    Code:
    Ext.override('Ext.data.Store', {	autoLoad: false
    });
    nothing change. How can I set autoLoad: false for all application in production version?
    Thank you.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    Try this:

    Code:
    Ext.define(null, {    
        override :'Ext.data.Store',
        autoLoad: false
    });
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3

    Default

    Thank you for the answer, nothing change.
    If I run application on http://localhost:1841 is my store twice load, but on http://localhost:8080/ is just once. Maybe I need to change in production config default autoload false?

    Now I figured out that override for Date is also not working. On localhost is working, on production version not... Any suggestions?

    Code:
    Ext.define(null, {        override :'Ext.form.field.Date',
        format: 'Y-m-d'
    });
    or
    Code:
    Ext.override('Ext.form.field.Date', {    format: 'Y-m-d'
    });

Similar Threads

  1. Replies: 1
    Last Post: 25 Sep 2014, 7:07 AM
  2. Replies: 2
    Last Post: 28 Mar 2014, 12:09 PM
  3. Replies: 1
    Last Post: 28 Jan 2014, 12:17 PM
  4. [FIXED] First Tutorial Load JSON Store not working: Unable to load data using. . . ."
    By technorodent in forum Sencha Architect 2.x: Bugs
    Replies: 14
    Last Post: 20 Jun 2013, 12:03 PM
  5. Replies: 1
    Last Post: 18 Apr 2012, 1:55 PM

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
  •