Ext.data.proxy.localStorage is not working at all with ExtJs version 4.2.2.1122.

The newly added lines are never saved to localStorage.

I digged into the code and found that this is because phantom is never set to true.


I found a workaround be setting phantom = true after adding new records: Replace


by


Code:



Ext.Array.each(store.add(records), function(rec){rec.phantom = true})

I hope this will be the only hack necessary. This bug already caused many hours of delay.