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 committed Dec 19, 2019
1 parent 1b9328c commit c9ec01f
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
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

0 comments on commit c9ec01f

Please sign in to comment.