Skip to content

Commit

Permalink
Revert "Remove renderPhaseUpdates Map (#17484)" (#17623)
Browse files Browse the repository at this point in the history
This reverts commit 8a347ed.
  • Loading branch information
gaearon authored Dec 16, 2019
1 parent 0b5a26a commit f42431a
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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit f42431a

Please sign in to comment.