Skip to content

Conversation

@SkyZeroZx
Copy link
Contributor

… flag

Refactors the viewport destruction logic to use the DestroyRef service, removing the need for a custom _isDestroyed flag.

@SkyZeroZx SkyZeroZx requested a review from a team as a code owner November 15, 2025 17:42
@SkyZeroZx SkyZeroZx requested review from andrewseguin and tjshiu and removed request for a team November 15, 2025 17:42
… flag

Refactors the viewport destruction logic to use the `DestroyRef` service, removing the need for a custom `_isDestroyed` flag.
@SkyZeroZx SkyZeroZx force-pushed the refactor/destroyRef-use-destroyed branch from 4fbc997 to 1d6b39b Compare November 15, 2025 18:01
private _injector = inject(Injector);

private _isDestroyed = false;
private _destroyRef = inject(DestroyRef);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be private readonly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was following the convention of the other injected properties; theoretically, no one should overwrite them, considering it implicit. Should we still use readonly?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants