Skip to content

Commit

Permalink
chore(omi): docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Sep 8, 2024
1 parent 8bcea56 commit 42fe6b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/omi/src/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ function diffAttributes(
// __hasChildren is not accuracy when it was empty at first, so add dom.children.length > 0 condition
// if (update || dom.__hasChildren || dom.children.length > 0 || (dom.store && !dom.store.data)) {
if (dom.receiveProps(dom.props, oldClone) !== false) {
// 如果这里使用 update,会导致子、孙等等的重复更新,所有用queuedUpdate,
// 详细见 repeat-rendering-test 的测试demo
dom.queuedUpdate()
}
// }
Expand Down

0 comments on commit 42fe6b7

Please sign in to comment.