Skip to content

Commit

Permalink
fix(core): add additional component metadata to component ID generati…
Browse files Browse the repository at this point in the history
…on (#50340)

This commit add `exportAs`, `signals`, `inputs` and `outputs` into account when generating a component ID.

Co-authored-by: alan-agius4 <17563226+alan-agius4@users.noreply.github.com>

PR Close #50340
  • Loading branch information
AndrewKushnir committed May 17, 2023
1 parent 5bf1abf commit c1016d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/render3/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
componentDef.decls,
componentDef.encapsulation,
componentDef.standalone,
componentDef.exportAs,
JSON.stringify(componentDef.inputs),
JSON.stringify(componentDef.outputs),
// We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
// match in the server and browser bundles.
Object.getOwnPropertyNames(componentDef.type.prototype),
Expand Down

0 comments on commit c1016d4

Please sign in to comment.