-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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 an edge case in ReactFiberUpdateQueue
#8975
Conversation
last
should be set to update
instead of null
when the insertion positions are the samelast
should be set to update
instead of null
Good catch! Hmm, typically we'd want to make sure we have a unit test to prevent a regression, but with edge cases like this that are so implementation specific it may not be worth it. Do you mind giving it a shot? |
Actually don't sweat it. The path you'd have to take to trigger this edge case is pretty complex. I'll give it a shot before I merge. |
That's fine.Thanks! |
That’s pretty cool, thank you for finding it. Did you just walk into it reading the source? |
last
should be set to update
instead of null
ReactFiberUpdateQueue
@gaearon Yes.I am trying to understand the fiber :) |
So are we. 😄 |
lol. |
@acdlite Is this still relevant? |
I'm going to close since this is outdated. If the bug still exists please re-submit with instructions to reproduce the problem. Thanks! |
Correct me if I misunderstood something.