fix(ivy): init hooks should be called once and only once (#28239)
PR Close #28239
This commit is contained in:
@ -256,6 +256,7 @@ export function defineComponent<T>(componentDefinition: {
|
||||
inputs: null !, // assigned in noSideEffects
|
||||
outputs: null !, // assigned in noSideEffects
|
||||
exportAs: componentDefinition.exportAs || null,
|
||||
onChanges: null,
|
||||
onInit: typePrototype.ngOnInit || null,
|
||||
doCheck: typePrototype.ngDoCheck || null,
|
||||
afterContentInit: typePrototype.ngAfterContentInit || null,
|
||||
|
Reference in New Issue
Block a user