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

fix:renderer-diff #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nan980914
Copy link

这种情况下预期与得到不符。代码链接如下:
https://codesandbox.io/s/patchchildren-keyed-double-end-add2-forked-fmecu?file=/src/index.js
未被处理的全新节点不应该插入到oldStartIdx索引所指向的节点之前,而是应该插入到newEndIdx + 1索引所指向的节点之前。修改后可得到预期效果。

这种情况下预期与得到不符。代码链接如下:
https://codesandbox.io/s/patchchildren-keyed-double-end-add2-forked-fmecu?file=/src/index.js
未被处理的全新节点不应该插入到oldStartIdx索引所指向的节点之前,而是应该插入到newEndIdx + 1索引所指向的节点之前。修改后可得到预期效果。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant