Unanswered: Store & local storage not saving data!
Unanswered: Store & local storage not saving data!
Hi guys, hoping you can help me out here-
I've got a problem with local storage where records added one at a time are saved throughout page refreshes in the local storage, but this only applies to adding new records.
If I try to update a record, or remove at an index and insert a new record in the same spot with updated data, it isn't stored through the refresh in memory and the javascript crashes trying to load back in data that didn't persist. If I just update the record's data nothing persists and the right amount of records are there, but if I remove and insert, or just remove and add, all the other records are fine, but the new one isn't saved. Hope this makes sense!
Hi.
I think you have some "dirty" data in your local storage.
Try to make a test by simply trying to change your model local storage proxy id, just to have a clean start.
However, did you take a look at the localstorage example in the official docs?