Skip to content

Conversation

@SkyZeroZx
Copy link
Contributor

@SkyZeroZx SkyZeroZx commented Nov 2, 2025

refactor(http): simplifies destruction tracking using destroyed property

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested a review from mmalerba November 2, 2025 22:24
@angular-robot angular-robot bot added the area: common/http Issues related to HTTP and HTTP Client label Nov 2, 2025
@ngbot ngbot bot added this to the Backlog milestone Nov 2, 2025
@SkyZeroZx SkyZeroZx changed the title destruction tracking and migrate JSONP to inject() update destruction tracking and migrate JSONP to inject() Nov 2, 2025
@SkyZeroZx SkyZeroZx force-pushed the refactor/add-more-refactor-http branch from 3d9a564 to 4a08f8c Compare November 3, 2025 03:06
Comment on lines -66 to -72
private destroyed = false;

constructor() {
this.destroyRef.onDestroy(() => {
this.destroyed = true;
});
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just keep this and those the rest of the changes. We won't be accepting publicAPI changes outside of the breaking change window.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Replaces the manual destroyed state with destroyed property
@SkyZeroZx SkyZeroZx force-pushed the refactor/add-more-refactor-http branch from 4a08f8c to 068476e Compare November 3, 2025 15:28
@SkyZeroZx SkyZeroZx changed the title update destruction tracking and migrate JSONP to inject() refactor(http): simplifies destruction tracking using destroyed property Nov 3, 2025
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Nov 3, 2025
@pullapprove pullapprove bot requested a review from kirjs November 3, 2025 18:04
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

@atscott atscott merged commit 44435ea into angular:main Nov 5, 2025
22 checks passed
@atscott
Copy link
Contributor

atscott commented Nov 5, 2025

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants