Skip to content

Commit

Permalink
perf(wx-react): 当没有需要交互的数据的时候,groupSetData提前返回
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Jul 18, 2019
1 parent b12d7ec commit 28153cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/wx-react/miniprogram_dist/AllComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ export class BaseComponent {
updaterList.push(styleUpdater)
}

if (updaterList.length === 0) {
gpr()
return
}
/// groupSetData 来优化多次setData

const topWX = styleUpdater ? styleUpdater.inst : this.getWxInst()
Expand Down

0 comments on commit 28153cf

Please sign in to comment.