Skip to content

Commit

Permalink
Revert "Remove renderPhaseUpdates Map (#17484)"
Browse files Browse the repository at this point in the history
This reverts commit 8a347ed.
  • Loading branch information
gaearon committed Dec 16, 2019
1 parent 0b5a26a commit 6807fde
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 444 deletions.
5 changes: 2 additions & 3 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Expand Up @@ -135,7 +135,7 @@ import {
calculateChangedBits,
scheduleWorkOnParentPath,
} from './ReactFiberNewContext';
import {renderWithHooks, bailoutHooks} from './ReactFiberHooks';
import {resetHooks, renderWithHooks, bailoutHooks} from './ReactFiberHooks';
import {stopProfilerTimerIfRunning} from './ReactProfilerTimer';
import {
getMaskedContext,
Expand Down Expand Up @@ -1318,8 +1318,7 @@ function mountIndeterminateComponent(
workInProgress.tag = ClassComponent;

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

// 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

0 comments on commit 6807fde

Please sign in to comment.