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

      0  

    Default Answered: LocalStorage and SyncStore deleted records

    Answered: LocalStorage and SyncStore deleted records


    I'm new to io and I was wondering why when a record is deleted from my syncStore it still appears on my localStorage in the console. When I call the store from console it shows the data without the deleted entries. Everything seems to work however I'm still seeing data in localStorage. It seems after a while of use this would fill up my localStorage. Am I missing something?

    Ext.Msg.confirm(
    "Confirm",
    "Do you wish to delete roll?",
    function(button){
    if (button == 'yes') {
    var store = Ext.getStore('Rolls');
    store.remove(record);
    store.sync();
    store.load();
    } else {
    return false;
    }
    });

    Update:
    I read the below post by elienajem22 about deleting records from the syncStore and it appears that records are not deleted from localStorage. I'm still wondering how this comes into play. Can you somehow recover those records or delete them permanently?

  2. Thank you for getting us the code sample.

    Yes that is a bug; we have reproduced it and will get it fixed.

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

      0  

    Default


    Hello,

    Thank you for trying io. Can you send us a code sample of how you are attempting to delete the record?

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

      0  

    Default


    I edited my above post, thanks for the quick response.

  5. #4
    Sencha - IO Dev Team
    Join Date
    Apr 2011
    Posts
    86
    Answers
    28
    Vote Rating
    5
    jason.cline is on a distinguished road

      0  

    Default


    Thank you for getting us the code sample.

    Yes that is a bug; we have reproduced it and will get it fixed.

  6. #5
    Sencha User
    Join Date
    Apr 2012
    Location
    Linz, AT
    Posts
    31
    Answers
    1
    Vote Rating
    1
    drindal is on a distinguished road

      0  

    Default


    is there a workaround for this problem? while waiting on a new release?

    I have a store with items. When I delete one of those items. It appears to be deleted from the store. As long I don't clear all the browser data (history, cache data), the items are deleted. After clearing all the browser data and logging in to the cloud, the deleted items are back.



    as in the example of the first post. Do i need to call sync() AND load()? Isn't sync() enough? I only call sync(). Perhaps this is my mistake?

    Thanks for help

Thread Participants: 2