You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the getEntangledLanes function, there appears to be a redundant operation inside the if statement that doesn't alter the value of entangledLanes as intended. This might be a bug or oversight in the implementation.
Code Snippet:
exportfunctiongetEntangledLanes(root: FiberRoot,renderLanes: Lanes): Lanes{letentangledLanes=renderLanes;if((entangledLanes&InputContinuousLane)!==NoLanes){// When updates are sync by default, we entangle continuous priority updates// and default updates, so they render in the same batch. The only reason// they use separate lanes is because continuous updates should interrupt// transitions, but default updates should not.entangledLanes|=entangledLanes&DefaultLane;}// ... rest of the function ...}
Problem Description:
In the if statement, the intention seems to be to entangle DefaultLane with InputContinuousLane when entangledLanes includes InputContinuousLane, so they render in the same batch. However, the operation:
entangledLanes|=entangledLanes&DefaultLane;
is effectively a no-op and doesn't change entangledLanes. This means that DefaultLane is not being properly entangled as intended.
The text was updated successfully, but these errors were encountered:
Description:
In the
getEntangledLanes
function, there appears to be a redundant operation inside theif
statement that doesn't alter the value ofentangledLanes
as intended. This might be a bug or oversight in the implementation.Code Snippet:
Problem Description:
In the
if
statement, the intention seems to be to entangleDefaultLane
withInputContinuousLane
whenentangledLanes
includesInputContinuousLane
, so they render in the same batch. However, the operation:is effectively a no-op and doesn't change
entangledLanes
. This means thatDefaultLane
is not being properly entangled as intended.The text was updated successfully, but these errors were encountered: