Skip to content

Commit

Permalink
fix(taro-weapp): componentWillMount 中 setState 失效,fix #397
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jul 29, 2018
1 parent 6841694 commit 54ca2a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-weapp/src/create-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function componentTrigger (component, key, args) {
if (key === 'componentWillMount') {
component._dirty = false
component._disable = false
component.state = component.getState()
}
}

Expand Down

0 comments on commit 54ca2a1

Please sign in to comment.