Skip to content

Commit

Permalink
Remove renderPhaseUpdates Map
Browse files Browse the repository at this point in the history
Follow up to facebook#17484, which was reverted due to a bug found in www.
  • Loading branch information
acdlite authored and smagill committed Dec 20, 2019
1 parent 1b9328c commit 9b880ea
Show file tree
Hide file tree
Showing 4 changed files with 444 additions and 133 deletions.
5 changes: 3 additions & 2 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ import {
calculateChangedBits,
scheduleWorkOnParentPath,
} from './ReactFiberNewContext';
import {resetHooks, renderWithHooks, bailoutHooks} from './ReactFiberHooks';
import {renderWithHooks, bailoutHooks} from './ReactFiberHooks';
import {stopProfilerTimerIfRunning} from './ReactProfilerTimer';
import {
getMaskedContext,
Expand Down Expand Up @@ -1407,7 +1407,8 @@ function mountIndeterminateComponent(
workInProgress.tag = ClassComponent;

// Throw out any hooks that were used.
resetHooks();
workInProgress.memoizedState = null;
workInProgress.updateQueue = null;

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

0 comments on commit 9b880ea

Please sign in to comment.