Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    14
    Vote Rating
    0
    joesinla is on a distinguished road

      0  

    Default Answered: Sync store after login

    Answered: Sync store after login


    If my localStorage is cleared or if I'm on a new device/browser and I attempt to login, then sync stores, the stores will not sync or load. I have to refresh the browser to get the stores to sync. I try to sync and load stores in the console and I'm getting the error code: NO_STORE_OWNER.

    Also, if I have auto load set on the store, how come it doesn't seem to autoload after a sync? Thanks.

  2. The sync stores need to wait to sync until there is a valid user.

    When you declare the store set auto sync to false. And auto load to true as we demonstrate in the Todos example:


    http://download.sencha.io/sencha-io-...store/Todos.js

    The wait for the authorized to fire then sync the store:

    http://download.sencha.io/sencha-io-...oller/Todos.js

  3. #2
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    84
    Answers
    27
    Vote Rating
    5
    jason.cline is on a distinguished road

      0  

    Default


    The sync stores need to wait to sync until there is a valid user.

    When you declare the store set auto sync to false. And auto load to true as we demonstrate in the Todos example:


    http://download.sencha.io/sencha-io-...store/Todos.js

    The wait for the authorized to fire then sync the store:

    http://download.sencha.io/sencha-io-...oller/Todos.js

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi