Results 1 to 3 of 3

Thread: Pre-loading app data

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Pre-loading app data

    Hi there,

    I'm building an app & using a local storage store for some of the data.

    I woud like to pre-load the store when the app originally loads, but then uses the data in local storage in future use of the app.

    I have attempted to use the 'load' callback to check if there is any data present after load, & the load the defaults if not, however the check for whether the data exists seems to not see the data in initial app load. Each time I load the app it adds another copy of the default data set. Can anyone help me understand what I'm doing wrong?

    Source code can be found here... http://pastebin.com/Ht3N9NhF

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    You shouldn't override the load method, you need to use the load event
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    OK, will do, but any hints on how I solve my problem about pre-loading data?

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
  •