You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However later on when it scans the store for indexes:
for(varindexinstoreConfig){if(!idbStore.indexNames.contains(index)&&index!=='autoIncrement'// && index !== "idProperty" // hack to get to work&&storeConfig[index].indexed!==false){idbStore.createIndex(index,index,storeConfig[index]);}}
an error is thrown in idbStore.createIndex(index, index, storeConfig[index]) : "third parameter is not an object". This is because its passing the idProperty into the createIndex method. I had to modify the code to also check that index !== "idProperty" in order to get this to work.
The text was updated successfully, but these errors were encountered:
In dstore/db/IndexedDB the idProperty is specified inside the store object:
This is where the constructor method looks for it:
However later on when it scans the store for indexes:
an error is thrown in
idbStore.createIndex(index, index, storeConfig[index]) : "third parameter is not an object"
. This is because its passing theidProperty
into the createIndex method. I had to modify the code to also check thatindex !== "idProperty"
in order to get this to work.The text was updated successfully, but these errors were encountered: