Skip to content

Commit ddc0977

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

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
@@ -137,7 +137,7 @@ import {
137137
calculateChangedBits,
138138
scheduleWorkOnParentPath,
139139
} from './ReactFiberNewContext';
140-
import {resetHooks, renderWithHooks, bailoutHooks} from './ReactFiberHooks';
140+
import {renderWithHooks, bailoutHooks} from './ReactFiberHooks';
141141
import {stopProfilerTimerIfRunning} from './ReactProfilerTimer';
142142
import {
143143
getMaskedContext,
@@ -1407,7 +1407,8 @@ function mountIndeterminateComponent(
14071407
workInProgress.tag = ClassComponent;
14081408

14091409
// Throw out any hooks that were used.
1410-
resetHooks();
1410+
workInProgress.memoizedState = null;
1411+
workInProgress.updateQueue = null;
14111412

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

0 commit comments

Comments
 (0)