dynamic props: we still to prevent recreation when update comes from self value change

This commit is contained in:
jean-emmanuel 2018-07-01 13:21:57 +02:00
parent a5f651bb53
commit 83c9cc21cb

View file

@ -452,7 +452,7 @@ class Widget extends EventEmitter {
}
}
if (reCreate && this.childrenHashes.indexOf(widget.hash) == -1) {
if (reCreate && this.childrenHashes.indexOf(widget.hash) == -1 && !(widget === this && updatedProps.length === 1 && updatedProps[0] === 'value')) {
this.reCreateWidget()
return true