Skip to content

fix(service-worker): do not register service worker if app is destroyed before it is ready to register#61101

Closed
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/service-worker-skip-registration
Closed

fix(service-worker): do not register service worker if app is destroyed before it is ready to register#61101
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/service-worker-skip-registration

Conversation

@arturovt
Copy link
Copy Markdown
Contributor

@arturovt arturovt commented May 2, 2025

In this commit, we check whether the application is destroyed before calling serviceWorker.register(...). We should not register the worker because other resources will not be available.

@pullapprove pullapprove bot requested a review from mmalerba May 2, 2025 16:45
@angular-robot angular-robot bot added the area: service-worker Issues related to the @angular/service-worker package label May 2, 2025
@ngbot ngbot bot added this to the Backlog milestone May 2, 2025
…ed before it is ready to register

In this commit, we check whether the application is destroyed before calling `serviceWorker.register(...)`. We should not register the worker because other resources will not be available.
@arturovt arturovt force-pushed the fix/service-worker-skip-registration branch from 80b4575 to ae5f09c Compare May 19, 2025 15:16
@atscott atscott added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 22, 2025
@atscott atscott removed the request for review from mmalerba May 22, 2025 17:02
@atscott
Copy link
Copy Markdown
Contributor

atscott commented May 22, 2025

This PR was merged into the repository by commit ce916fe.

The changes were merged into the following branches: main, 19.2.x, 20.0.x

@atscott atscott closed this in ce916fe May 22, 2025
atscott pushed a commit that referenced this pull request May 22, 2025
…ed before it is ready to register (#61101)

In this commit, we check whether the application is destroyed before calling `serviceWorker.register(...)`. We should not register the worker because other resources will not be available.

PR Close #61101
atscott pushed a commit that referenced this pull request May 22, 2025
…ed before it is ready to register (#61101)

In this commit, we check whether the application is destroyed before calling `serviceWorker.register(...)`. We should not register the worker because other resources will not be available.

PR Close #61101
@arturovt arturovt deleted the fix/service-worker-skip-registration branch May 22, 2025 17:07
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: service-worker Issues related to the @angular/service-worker package target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants