Skip to content

Commit c0ebe34

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/render3/definition.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,10 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
696696
componentDef.decls,
697697
componentDef.encapsulation,
698698
componentDef.standalone,
699+
componentDef.signals,
700+
componentDef.exportAs,
701+
JSON.stringify(componentDef.inputs),
702+
JSON.stringify(componentDef.outputs),
699703
// We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
700704
// match in the server and browser bundles.
701705
Object.getOwnPropertyNames(componentDef.type.prototype),

0 commit comments

Comments
 (0)