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
(feat) - cleanup changing refs correctly #2055
Conversation
b88260b
to
e94648f
Compare
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.
One comment hoping to save us some size.
also, looks like a yarn.lock
file sneaked into your PR 🐱👤
src/diff/index.js
Outdated
@@ -381,9 +381,9 @@ function diffElementNodes( | |||
* @param {any} value | |||
* @param {import('../internal').VNode} vnode | |||
*/ | |||
export function applyRef(ref, value, vnode) { | |||
export function applyRef(ref, value, vnode, oldRef) { |
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.
On my phone so maybe I’m a bit lost here but what’s this argument for?
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.
oops, me being dumb good spot 👍
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.
Thanks! LGTM 🎉
No no, Thank YOU for the idea on how to reduce size, hero! |
Fixes: #2052
This differentiates in one aspect and that is that we do
instead of
nullcalls
valuecalls