-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDB transaction before store is created #182
Comments
... Which I believe is handled by |
I've investigated this further.
I've achieved this by using This issue only occurs when Side note, re-assigning |
I couldn't reproduce this issue on my chrome( When opening a connection request, If you can provide more information such as which browser were you using, along with some sample code, it would help us further investigate the issue, since there could be an issue with a specific browser IDB implementation that have caused it. |
When creating a IDB store for the first time if we attempt to perform an operation on the store
_getTransaction
fails.We currently check forif (!this.db)
to see if the store has been created. However,this.db
could also be an unresolved promise if the open request has not yet completed (i.e. upgrade is still in progress). We don't currently accommodate for this.this.db
should only reference the IDB when it is fully ready to be interacted with, and_getTransaction
should be checking to see if it is a promise, if it is it should chain the request so it is fired once the open request completes.The text was updated successfully, but these errors were encountered: