Skip to content

Commit

Permalink
fix(taro-weapp): 调用 forceUpdate 时应该不去触发 shouldComponentUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Oct 22, 2018
1 parent ad60d38 commit 24cdfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-weapp/src/component.js
Expand Up @@ -21,7 +21,7 @@ class BaseComponent {
nextProps = {}
_dirty = true
_disable = true
_isforceUpdate = false
_isForceUpdate = false
_pendingStates = []
_pendingCallbacks = []
$router = {
Expand Down Expand Up @@ -72,7 +72,7 @@ class BaseComponent {
if (isFunction(callback)) {
(this._pendingCallbacks = this._pendingCallbacks || []).push(callback)
}
this._isforceUpdate = true
this._isForceUpdate = true
updateComponent(this)
}

Expand Down

0 comments on commit 24cdfff

Please sign in to comment.