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
I have a very strange behaviour with autoSchema.
I might have miss something in the documentation or with this option usage but whenever I implicitly create a store (after the first one) by putting a value inside, the deferred request never end :
vardb=newydn.db.Storage('newDatabase',null,{autoSchema: true});db.put('firstStore',{value: 'dummy'},1).always(function(){console.log('Ok');returndb.put('firstStore',{value: 'still dummy'},2);}).always(function(){console.log('Still Ok');returndb.put('secondStore',{value: 'Too much dummy'},1);}).always(function(){console.log('Will not be displayed');});
If I take a look at my indexed db, secondStore is created but empty.
Even strager, if I add
db.put('firstStore',{value: 'no more dummy please'},3);
or
db.put('secondStore',{value: 'no more dummy please'},2);
The put in 'secondStore' is triggered and 'Will not be displayed' is printed.
Could you help me to find what i'm doing wrong ?
The text was updated successfully, but these errors were encountered:
mehdirande
changed the title
Second store AutoSchema
Request to implicitly create a new store with autoSchema is never triggered
Nov 3, 2015
I never use autoSchema in my app, so do not test extensively. Auto schema, which is possible and easier to use, but require disconnect and reconnect the database connection. I can imagine some callback are lost during the process.
When I have time, I will create a unit test and fix it.
I have a very strange behaviour with autoSchema.
I might have miss something in the documentation or with this option usage but whenever I implicitly create a store (after the first one) by putting a value inside, the deferred request never end :
If I take a look at my indexed db, secondStore is created but empty.
Even strager, if I add
or
The put in 'secondStore' is triggered and 'Will not be displayed' is printed.
Could you help me to find what i'm doing wrong ?
The text was updated successfully, but these errors were encountered: