Skip to content

Alias afterRender to afterEachRender #54825

Closed as not planned
Closed as not planned
@mark-akturatech

Description

@mark-akturatech

Which @angular/* package(s) are relevant/related to the feature request?

@angular/core

Description

@angular/core afterRender and afterNextRender are great however it is too easy to miss the distinction during a peer review and this can have a big effect on performance.

Is it possible to alias afterRender to afterEachRender or similar (I understand that it is too late to change names now).
The new name would be clear that the code attached will run multiple times (as opposed to once only if using afterNextRender).

Proposed solution

Rename afterRender to afterEachRender

Alternatives considered

Currently if used I asked the devs to import { afterRender as afterEachRender }. We could add a lint task to ensure this is done.

BTW I don't get a chance to say this elsewhere - so will say it here - thank you for all your work. Every change your team makes is so positive.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy