angular/packages/platform-browser/animations/async/test
Kristiyan Kostadinov dbb8980d03 fix(platform-browser): avoid circular DI error in async renderer (#59271)
In https://github.com/angular/components/pull/30179 the CDK overlay started depending on the `Renderer2Factory`. Since the overlay is used in the `MatSnackbar` which is commonly used in error handlers, `Overlay` can end up being injected as a part of the app initialization. Because `AsyncAnimationRendererFactory` depends on the `ChangeDetectionScheduler`, it may cause a circular dependency.

These changes inject the `ChangeDetectionScheduler` lazily to avoid the error.

Note: this will also be resolved by #58984, but I decided to send it out, because:
1. #58984 seems to be stuck on some internal cleanup.
2. The `AsyncAnimationRendererFactory` doesn't need the `scheduler` eagerly anyway so the change is fairly safe.

Fixes #59255.

PR Close #59271
2024-12-21 08:35:59 -07:00
..
animation_renderer_spec.ts fix(platform-browser): avoid circular DI error in async renderer (#59271) 2024-12-21 08:35:59 -07:00
BUILD.bazel feat(animations): Add the possibility of lazy loading animations code. (#50738) 2023-09-29 10:49:39 -07:00