Skip to content
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

Update IndexDB makePromise to resolve after the transaction is complete. #221

Merged
merged 1 commit into from
Aug 24, 2018

Conversation

edhager
Copy link
Member

@edhager edhager commented Aug 24, 2018

When a transaction is present, waiting for the "success" event is not an adequate way to determine when the data as be persisted. With a transaction, the data has been persisted after the "compete" event fire.

This fix causes the promise created in IndexedDB to not be resolved until the "complete" event fire when a transaction is active.

…ete event fires when there is a transaction.
@edhager
Copy link
Member Author

edhager commented Aug 24, 2018

The existing unit tests do exercise the new "complete" event handler.

@edhager edhager merged commit 7fe7d6b into SitePen:master Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants