Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(common): avoid interacting with a destroyed injector (#47243)
The NgOptimizedImage directive was previously trying to use an already destroyed injector in the ngOnDestroy callback. This fix pre-injects necessery tokens so no injector calls are done in the destroy process. PR Close #47243
- Loading branch information
1 parent
40d8821
commit f9511bf
Showing
1 changed file
with
11 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters