Results 1 to 2 of 2

Thread: Sync store after login

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default 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:

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

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