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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You shouldn't override the load method, you need to use the load event
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •