Skip to content

【BUGFIX】修复嵌套列表更新列表后组件实例复用导致动态属性丢失问题 #5507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/uni-mp-core/src/runtime/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export function updateComponentProps(
if (hasQueueJob(instance.update)) {
invalidateJob(instance.update)
}
// 修复列表组件复用时导致的组件动态属性丢失问题
// 最小复现demo https://developers.weixin.qq.com/s/ZvNerFmK8y0f
instance.effect.dirty = true
if (
__PLATFORM__ === 'mp-toutiao' ||
__PLATFORM__ === 'mp-baidu' ||
Expand Down
Loading