mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Prior to this change, we've used `componentDef.id` as a key in a Map that acts as a cache to avoid re-creating injector instances for standalone components. In v16, the logic that generates the id has changed from an auto-incremental to a generation based on metadata. If multiple components have similar metadata, their ids might overlap. This commit updates the logic to stop using `componentDef.id` as a key and instead, use the `componentDef` itself. This would ensure that we always have a correct instance of an injector associated with a standalone component instance. Resolves #50724. PR Close #50954 |
||
|---|---|---|
| .. | ||
| copy_definition_feature.ts | ||
| host_directives_feature.ts | ||
| inherit_definition_feature.ts | ||
| input_transforms_feature.ts | ||
| ng_onchanges_feature.ts | ||
| providers_feature.ts | ||
| standalone_feature.ts | ||