Skip to content
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

【221页】代码错误 #30

Open
lhxLotus opened this issue Feb 26, 2022 · 1 comment
Open

【221页】代码错误 #30

lhxLotus opened this issue Feb 26, 2022 · 1 comment
Labels
已在四印中修正 Further information is requested 已确认

Comments

@lhxLotus
Copy link

221页示例代码第15行

patch(oldChildren[i], newChildren[i])

应改为

patch(oldChildren[i], newChildren[i], container)

否则oldChildren 中如果有 Fragment 会出错。

@HcySunYang
Copy link
Owner

第 15 行代码:

patch(oldChildren[i], newChildren[i])

应改为:

patch(oldChildren[i], newChildren[i], container)

image

@HcySunYang HcySunYang added 已确认 已在四印中修正 Further information is requested labels Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
已在四印中修正 Further information is requested 已确认
Projects
None yet
Development

No branches or pull requests

2 participants