funkensturm / ember-local-storage

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.
https://www.funkensturm.com/ember-local-storage/
MIT License
218 stars 76 forks source link

chrome.storage.local #255

Closed wmlele closed 2 years ago

wmlele commented 7 years ago

How hard you think it would be to adapt ember-local-storage to be able to also support chrome.storage.local? Apart for for the API changes, my understanding is that the chrome storage is intrinsically asynchronous, vs the synchronous window.localStorage. I could give it a shot, but any input will be appreciated.

fsmanuel commented 7 years ago

@wmlele Sorry for the late response. If I'm correct there is a localForage driver: https://github.com/esphen/localforage-webExtensionStorage-driver

I would prefer to get a localForage implementation ready (#153) that allows to use custom drivers.

Right now I don't have the time to do it. There is a preliminary TODO list to get localForage in https://github.com/funkensturm/ember-local-storage/issues/153#issuecomment-229517492.

If you have time you can take a shot. I'm happy to help.

fsmanuel commented 2 years ago

Superseeded by https://github.com/funkensturm/ember-local-storage/issues/337