props: don't update cached props if not dynamic (the old value can be used in old-fashion remove callback)
This commit is contained in:
parent
7dd7fcceca
commit
7db0ae87b3
1 changed files with 1 additions and 2 deletions
|
|
@ -363,14 +363,13 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (JSON.stringify(oldPropValue) !== JSON.stringify(propValue)) {
|
||||
|
||||
this.cachedProps[propName] = propValue
|
||||
|
||||
if (this.onPropChanged(propName, options, oldPropValue)) {
|
||||
|
||||
reCreate = true
|
||||
|
||||
} else {
|
||||
|
||||
this.cachedProps[propName] = propValue
|
||||
changedProps.push(propName)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue