Skip to content

Commit c1016d4

Browse files
committed
fix(core): add additional component metadata to component ID generation (#50340)
This commit add `exportAs`, `signals`, `inputs` and `outputs` into account when generating a component ID. Co-authored-by: alan-agius4 <[email protected]> PR Close #50340
1 parent 5bf1abf commit c1016d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/core/src/render3/definition.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,9 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
689689
componentDef.decls,
690690
componentDef.encapsulation,
691691
componentDef.standalone,
692+
componentDef.exportAs,
693+
JSON.stringify(componentDef.inputs),
694+
JSON.stringify(componentDef.outputs),
692695
// We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
693696
// match in the server and browser bundles.
694697
Object.getOwnPropertyNames(componentDef.type.prototype),

0 commit comments

Comments
 (0)