-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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) - should reorder memoized children #1980
Conversation
Oh that'd be really cool 👍💯 We should double check with the rest cases from #1879 just to be sure that we don't introduce any regressions |
@marvinhagemeister can confirm the demo still works |
@@ -90,7 +90,7 @@ export function diff(parentDom, newVNode, oldVNode, context, isSvg, excessDomChi | |||
c.state = c._nextState; | |||
c._dirty = false; | |||
c._vnode = newVNode; | |||
newVNode._dom = oldDom!=null ? oldDom!==oldVNode._dom ? oldDom : oldVNode._dom : null; | |||
newVNode._dom = oldVNode._dom; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line always confused me 😄 anyway. Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 awesome
So apparently the fix introduced in the other PR where we make children point to their parents make this line irrelevant.
Save bytes + fix code 🎉
-15B