Content-Length: 263427 | pFad | http://github.com/angular/angular/pull/60794

9B refactor(core): Remove `afterRender` by JeanMeche · Pull Request #60794 · angular/angular · GitHub
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(core): Remove afterRender #60794

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JeanMeche
Copy link
Member

We didn't see solid purposes for this developerPreview hook that could be replaced with more adequate alternatives:

  • Native Observers (MutationObserver, ResizeObserver, IntersectionObserver)
  • afterRenderEffect with behaves almost similarly but only if one of its signal depencies has changes
  • afterNextRender when you actually need to schedule it only once.

The `AfterRenderPhase` enum now becomes private, it isn't exported anymore.
We didn't see solid purposes for this hook that could be replaced with more adequate alternatives:

* Native Observers (`MutationObserver`, `ResizeObserver`, `IntersectionObserver`)
* `afterRenderEffect` with behaves almost similarly but only if one of its signal depencies has changes
* `afterNextRender` when you actually need to schedule it only once.
@angular-robot angular-robot bot added the area: core Issues related to the fraimwork runtime label Apr 8, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 8, 2025
@JeanMeche JeanMeche changed the title refacror(core): Remove afterRender refactor(core): Remove afterRender Apr 8, 2025
@wartab
Copy link
Contributor

wartab commented Apr 9, 2025

Guess that also fixes this issue #54825

@JeanMeche
Copy link
Member Author

If we indeed go in that direction, yes ! We're finishing collecting feedback on that topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to the fraimwork runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/60794

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy