1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    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
    62
    Vote Rating
    3
    Answers
    16
    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
    13
    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
    62
    Vote Rating
    3
    Answers
    16
    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.