props: fix cache update > callback order logic
This commit is contained in:
parent
99d218b8ec
commit
f7cc8b9f85
1 changed files with 3 additions and 4 deletions
|
|
@ -363,13 +363,15 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (JSON.stringify(oldPropValue) !== JSON.stringify(propValue)) {
|
||||
|
||||
if (this.onPropChanged(propName, options, oldPropValue)) {
|
||||
|
||||
if (!this.constructor.dynamicProps.includes(propName)) {
|
||||
|
||||
reCreate = true
|
||||
|
||||
} else {
|
||||
|
||||
this.cachedProps[propName] = propValue
|
||||
this.onPropChanged(propName, options, oldPropValue)
|
||||
changedProps.push(propName)
|
||||
|
||||
}
|
||||
|
|
@ -396,9 +398,6 @@ class Widget extends EventEmitter {
|
|||
|
||||
onPropChanged(propName, options, oldPropValue) {
|
||||
|
||||
if (!this.constructor.dynamicProps.includes(propName)) return true
|
||||
|
||||
|
||||
switch(propName) {
|
||||
|
||||
case 'value':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue