Skip to content

Commit f68eae6

Browse files
committed
Remove renderPhaseUpdates Map
Follow up to facebook#17484, which was reverted due to a bug found in www.
1 parent f42431a commit f68eae6

File tree

4 files changed

+444
-133
lines changed

4 files changed

+444
-133
lines changed

packages/react-reconciler/src/ReactFiberBeginWork.js

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

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

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

0 commit comments

Comments
 (0)