angular/packages/core/test/render3/instructions
Alex Rickabaugh 6059ca8f1f refactor(core): restructure AfterRenderManager to connect related phases (#57453) (#57504)
The `afterRender` infrastructure was first implemented around the idea of
independent, singular hooks. It was later updated to support a spec of
multiple hooks that pass values from one to another as they execute, but the
implementation still worked in terms of singular hooks under the hood. This
creates a number of maintenance issues, and a few bugs. For example, when
one hook fails, further hooks in the pipeline should no longer execute, but
this was hard to ensure under the old design.

This refactoring restructures `afterRender` infrastructure significantly to
introduce the concept of a "sequence", a collection of hooks of different
phases that execute together. Overall, the implementation is simplified
while making it more resilient to issues and future use cases, such as the
upcoming `afterRenderEffect`.

As part of this refactoring, the `internalAfterNextRender` concept is
removed, as well as the unused `queueStateUpdate` concept which used it.

PR Close #57453

PR Close #57504
2024-08-23 12:48:01 -07:00
..
mock_renderer_factory.ts refactor(core): replace usages of removeChild (#57203) 2024-08-07 16:46:09 +00:00
shared_spec.ts refactor(core): restructure AfterRenderManager to connect related phases (#57453) (#57504) 2024-08-23 12:48:01 -07:00
styling_spec.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00