Skip to content

refactor: remove afterRender #1262

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

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

Conversation

JeanMeche
Copy link

In zone apps, afterRender can be replaced by ngZone.onStable/ngZone.onMicrotaskEmpty.

For zoneless apps, recommendations are to use afterRenderEffect and/or observers like ResizeObserver.

Note: Angular intends to remove the afterRender api.

In zone apps, `afterRender` can be replaced by `ngZone.onStable`/`ngZone.onMicrotaskEmpty`.

For zoneless apps, recommendations are to use `afterRenderEffect` and/or observers like `ResizeObserver`.

Note: Angular intends to remove the `afterRender` api.
@JeanMeche JeanMeche marked this pull request as draft April 11, 2025 14:46
@JeanMeche
Copy link
Author

Back to draft, we actually want to re-asses what the right pattern would be here before suggesting a change of API.

@richard-to
Copy link
Collaborator

Ok sounds good.

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.

2 participants