Search code examples
ember.jslocalforage

No persistent data on Firefox OS using ember-localforage-adapter


I've got an issue with using this adapter. I'm a noob in Ember, so it might be (and probably is) my error...

Ember 1.13.8 Ember Localforage Adapter 1.13.1

  • Adding an entry is fine - adapter is called.
  • Adapter isn't called when the application is started.
  • Data is missing when an app is reloaded.

https://github.com/zalun/stereophoto/tree/master/ember-stereophoto


Solution

  • You are using peekAll to retrieve all the models in your stereos/index route but in the adapter of localforage peekAll is not overwritten (which means that its behaviour hasn't been changed from its original one in ember-data). You should use findAllinstead.