Closed jacobq closed 6 years ago
It seems that you haven't configured your database. You need to add a indexeddb-configuration
service, like explained here:
https://mydea.github.io/ember-indexeddb/docs/classes/IndexedDbConfiguration.html
You will need to configure a table per model for the ember data adapter to work.
Thanks for your reply. Perhaps for someone who is familiar with the workings of IndexedDB
or this addon the docs are sufficiently clear. However, I have no idea how to interpret statements like this one:
"Overwrite the mapTable property & add versionX properties to fit your application."
Overwrite with what? Coming from configuration-less back-ends like ember-localstorage-adapter
this is a significant barrier to adoption.
I submitted a docs PR for your consideration because I think the current text is misleading (specifically, the word "just" implies that no other action is needed). However, before you replied I gave up and switched to ember-pouch
since it was easier for me, so I am closing this issue.
I'm not sure what I'm doing wrong. The docs make it sounds like all that is needed to use with ember-data is to install and create an adapter, but that didn't work for me. I also tried calling
indexedDb.setupTask.perform();
when the application (controller) is initialized.Is this a bug (doesn't work with ember-data) or am I doing something wrong?
Repro repo here (run
yarn && ember s
)Ref #3