Skip to content

Commit f42431a

Browse files
authored
Revert "Remove renderPhaseUpdates Map (#17484)" (#17623)
This reverts commit 8a347ed.
1 parent 0b5a26a commit f42431a

File tree

4 files changed

+133
-444
lines changed

4 files changed

+133
-444
lines changed

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ import {
135135
calculateChangedBits,
136136
scheduleWorkOnParentPath,
137137
} from './ReactFiberNewContext';
138-
import {renderWithHooks, bailoutHooks} from './ReactFiberHooks';
138+
import {resetHooks, renderWithHooks, bailoutHooks} from './ReactFiberHooks';
139139
import {stopProfilerTimerIfRunning} from './ReactProfilerTimer';
140140
import {
141141
getMaskedContext,
@@ -1318,8 +1318,7 @@ function mountIndeterminateComponent(
13181318
workInProgress.tag = ClassComponent;
13191319

13201320
// Throw out any hooks that were used.
1321-
workInProgress.memoizedState = null;
1322-
workInProgress.updateQueue = null;
1321+
resetHooks();
13231322

13241323
// Push context providers early to prevent context stack mismatches.
13251324
// During mounting we don't know the child context yet as the instance doesn't exist.

0 commit comments

Comments
 (0)