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

feat: add separate type definitions for `updateServiceWorker() and updateServiceWorker(true) #802

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

piotr-cz
Copy link
Contributor

@piotr-cz piotr-cz commented Dec 2, 2024

Description

The reloadPage parameter of updateServiceWorker has been deprecated in v0.13.3...v0.14.0 and has no effect.

This adds the @deprecated jsdoc tag which shows in VScode

Linked Issues

none

Additional Context

To test, open examples/preact-router/src/ReloadPrompt.tsx#L53 in VSCode and point over updateServiceWorker(true):

image

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for vite-plugin-pwa-legacy ready!

Name Link
🔨 Latest commit 5213c1c
🔍 Latest deploy log https://app.netlify.com/sites/vite-plugin-pwa-legacy/deploys/674d97fef25cbc0008b0f5d2
😎 Deploy Preview https://deploy-preview-802--vite-plugin-pwa-legacy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant