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

(feat) - cleanup changing refs correctly #2055

Merged
merged 7 commits into from Nov 1, 2019

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Oct 28, 2019

Fixes: #2052

This differentiates in one aspect and that is that we do

  • call with null
  • call with value

instead of
nullcalls
valuecalls

@coveralls
Copy link

coveralls commented Oct 28, 2019

Coverage Status

Coverage increased (+0.1%) to 99.892% when pulling 24a1087 on feat/cleanup-stale-refs into 3c6c068 on master.

@JoviDeCroock JoviDeCroock marked this pull request as ready for review October 30, 2019 23:08
Copy link
Member

@andrewiggins andrewiggins left a 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/children.js Outdated Show resolved Hide resolved
@@ -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) {
Copy link
Member

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?

Copy link
Member Author

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 👍

Copy link
Member

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM 🎉

@JoviDeCroock
Copy link
Member Author

Thanks! LGTM 🎉

No no, Thank YOU for the idea on how to reduce size, hero!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functional refs behave different from React
4 participants