Skip to content

Commit

Permalink
fix(swan): 修复Taro 1.3.x,百度小程序component shouldComponentUpdate不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSR authored and Chen-jj committed Mar 10, 2020
1 parent cef40b3 commit 4080659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-swan/src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class BaseComponent {
(this._pendingCallbacks = this._pendingCallbacks || []).push(callback)
}
if (!this._disable) {
enqueueRender(this, forceUpdateCallback)
enqueueRender(this, callback === forceUpdateCallback)
}
}

Expand Down

0 comments on commit 4080659

Please sign in to comment.