Skip to content

Commit

Permalink
fix(with-weapp): setData 更新数据同步,渲染异步
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Dec 5, 2018
1 parent f5ded7a commit 717f7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-with-weapp/src/index.ts
Expand Up @@ -67,6 +67,7 @@ export default function withWeapp (componentType: string) {
Object.keys(obj).forEach(key => {
safeSet(state, key, obj[key])
})
Object.assign(this.state, state)
this.setState(state)
}

Expand Down

0 comments on commit 717f7b2

Please sign in to comment.