File tree Expand file tree Collapse file tree
packages/core/src/render3/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99import { InputSignalNode } from '../../authoring/input/input_signal_node' ;
1010import { OnChanges } from '../../change_detection/lifecycle_hooks' ;
11+ import { SimpleChange , SimpleChanges } from '../../change_detection/simple_change' ;
1112import { assertString } from '../../util/assert' ;
1213import { EMPTY_OBJ } from '../../util/empty' ;
1314import { applyValueToInputField } from '../apply_value_input_field' ;
1415import { DirectiveDef , DirectiveDefFeature } from '../interfaces/definition' ;
15- import { SimpleChange , SimpleChanges } from '../../change_detection/simple_change' ;
1616
1717/**
1818 * The NgOnChangesFeature decorates a component with support for the ngOnChanges
@@ -112,7 +112,9 @@ function ngOnChangesSetInput<T>(
112112const SIMPLE_CHANGES_STORE = '__ngSimpleChanges__' ;
113113
114114function getSimpleChangesStore ( instance : any ) : null | NgSimpleChangesStore {
115- return instance [ SIMPLE_CHANGES_STORE ] || null ;
115+ return Object . hasOwn ( instance , SIMPLE_CHANGES_STORE )
116+ ? instance [ SIMPLE_CHANGES_STORE ] || null
117+ : null ;
116118}
117119
118120function setSimpleChangesStore ( instance : any , store : NgSimpleChangesStore ) : NgSimpleChangesStore {
You can’t perform that action at this time.
0 commit comments