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

Discourage use of workbox-core's skipWaiting #2547

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Discourage use of workbox-core's skipWaiting #2547

merged 1 commit into from
Jun 23, 2020

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton

Fixes #2525 (ignore the branch name...)

Usage of workbox-core's skipWaiting(), which wrapped the self.skipWaiting() in an install handler, has been confusing for folks who, for instance, want to call self.skipWaiting() inside a message handler.

Since self.skipWaiting() can be "safely" called at any point, there's little value in wrapping it in an install handler, and this PR drops that.

We could remove it from workbox-core entirely in v7.

@jeffposnick jeffposnick merged commit 3ffee3d into v6 Jun 23, 2020
@jeffposnick jeffposnick deleted the promise-getSW branch June 23, 2020 17:56
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.

skipWaiting in message handler doesn't work
2 participants