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

refactor(docs-infra): cleanup after render sequence in ReferenceScrollHandler #58640

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

Conversation

arturovt
Copy link
Contributor

@arturovt arturovt commented Nov 13, 2024

In this commit, we're replacing the provided injector in afterNextRender with a node injector
because it was previously mistakenly passing an EnvironmentInjector in the ReferenceScrollHandler.

@pullapprove pullapprove bot requested a review from jelbourn November 13, 2024 18:33
@angular-robot angular-robot bot added the area: docs-infra Angular.dev application and infrastructure label Nov 13, 2024
@ngbot ngbot bot added this to the Backlog milestone Nov 13, 2024

// There's no reason to set this up on the server.
// It would also lead to a memory leak because we would need to
// remove the listener when the service is destroyed.
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we should rephrase this. ADEV doesn't rely on SSR but on SSG only. Memory-leak is somewhat a non-issue.

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 forgot about SSG-only. I updated the code with another small fix.

…llHandler`

In this commit, we're replacing the provided injector in `afterNextRender` with a node injector
because it was previously mistakenly passing an `EnvironmentInjector` in the `ReferenceScrollHandler`.
@arturovt arturovt changed the title refactor(docs-infra): setup window error reporter only on client @arturovt refactor(docs-infra): cleanup after render sequence in ReferenceScrollHandler Nov 15, 2024
@arturovt arturovt changed the title @arturovt refactor(docs-infra): cleanup after render sequence in ReferenceScrollHandler refactor(docs-infra): cleanup after render sequence in ReferenceScrollHandler Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs-infra Angular.dev application and infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants