Skip to content

Commit

Permalink
fix(weapp): 修复插件通过 extraProps 不能传函数的问题,fix #4658
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Nov 14, 2019
1 parent a17872c commit f240cff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/taro-weapp/src/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function doUpdate (component, prevProps, prevState) {
if (typeof val === 'object') {
if (isEmptyObject(val)) return safeSet(_data, key, {})

val = shakeFnFromObject(val)
// 避免筛选完 Fn 后产生了空对象还去渲染
if (!isEmptyObject(val)) safeSet(_data, key, val)
} else {
Expand Down

0 comments on commit f240cff

Please sign in to comment.