Hello, i need to understand how the clearing method works, because after using store.removeAll(), the instance of my proxy seems to disappear in the localStorage of Chrome.

I load some patients associated with docs(which are a array of images), and a photo, i display these images in a list when i select a patient.

then i remove all my records , to setData from the record of a new patient.

This is working, but just once, after the removeAll(), the proxy used for my first patient is gone. so after switching again from my second to the first patient, my list is empty.

Code:
 loadingPatient: function(list, record) {        
        
       this.getMain().push({
        xtype:'patientdetail',
        title: record.get('CON_LASTNAME') +' '+record.get('CON_FIRSTNAME'),
        data : record.data
        
       });
  
    var theStore=Ext.getStore('eventActe');
     theStore.filterBy(function(rec){
             return rec && rec.get('CON_ID') == record.get('CON_ID')
        });
      theStore.load();
    
       var form = this.getFichePat();
       form.updateWithRecord(record);
 
       var imagStore=Ext.getStore('radios');
       imagStore.removeAll();
        imagStore.sync();


       imagStore.setData(record.get('docs'));
       imagStore.load();
       imagStore.sync();
       
       var imgs = this.getTest();
       imgs.refresh();
    },
my Store

Code:
Ext.define('CWFSE.store.ImagerieStore', {
    extend: 'Ext.data.Store',
    requires: ['CWFSE.model.Document'],
 
    config: {
        model: 'CWFSE.model.Document',
        storeId: 'radios',
        autoLoad: true,
        autoSync: true,
              proxy: {
                id : 'imagesProxy',
            type: 'localstorage',             
            reader: {
                type: 'json',
               rootProperty:'files'               
            }
        }
    }


});
this is the record.get('docs');

[Object, Object, Object, Object, Object, Object, Object, Object]
  • 0: Object
    • CON_ID: 1
    • UPL_FILENAME: "png18B.png"
    • UPL_ID: 3
    • UPL_IP: "192.168.0.254"
    • UPL_NAME: "radio1.png"
    • UPL_PATH: "http://192.168.0.34/thumb/4036c36a16ef221529f77f2989f4dc57d1287d91/125/125"
    • UPL_SIZE: "607000"
    • UPL_TOKEN: "4036c36a16ef221529f77f2989f4dc57d1287d91"
    • UPL_TYPE: "image/png"
    • id: "1f0901d6-881b-43e3-b89f-de6ef668599d"
    • patient_id: null
    • xindex: 1