The addon provides a storageFor computed property that returns a proxy and persists the changes to localStorage or sessionStorage. It ships with an ember-data adapter.
Using the LS adapter with Ember Data. On a fresh load, with records already saved in LS:
If I do localStorage.clear() and then save a record, both the record and the index key for that model type are saved to LS. If I repeat clearing and saving, the index key doesn´t save. Is there a way to force the index key to save - presume this is some sort of internal caching issue?
Using the LS adapter with Ember Data. On a fresh load, with records already saved in LS:
If I do localStorage.clear() and then save a record, both the record and the index key for that model type are saved to LS. If I repeat clearing and saving, the index key doesn´t save. Is there a way to force the index key to save - presume this is some sort of internal caching issue?