mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Reset didReceiveUpdate in beginWork (#16359)
This is a bad bug. It means that we sometimes inherit didReceiveUpdate from a previous component's begin. Effectively this only means that we're overrendering in some cases. We should refactor to get rid of this as a global flag.
This commit is contained in:
committed by
Andrew Clark
parent
9449f8bf39
commit
2716d91ec4
@@ -2846,6 +2846,8 @@ function beginWork(
|
||||
workInProgress,
|
||||
renderExpirationTime,
|
||||
);
|
||||
} else {
|
||||
didReceiveUpdate = false;
|
||||
}
|
||||
} else {
|
||||
didReceiveUpdate = false;
|
||||
|
||||
Reference in New Issue
Block a user