Skip to content

Commit

Permalink
Fix cross-fork discrepancy
Browse files Browse the repository at this point in the history
I missed a few lines when syncing an earlier step. Usually I would find
which one and patch it but I'm about to squash and merge so meh.
  • Loading branch information
acdlite committed Dec 18, 2020
1 parent 4bb19da commit 59aea20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/react-reconciler/src/ReactFiberCommitWork.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import type {FunctionComponentUpdateQueue} from './ReactFiberHooks.old';
import type {Wakeable} from 'shared/ReactTypes';
import type {ReactPriorityLevel} from './ReactInternalTypes';
import type {OffscreenState} from './ReactFiberOffscreenComponent';
import type {HookFlags} from './ReactHookEffectTags';

import {unstable_wrap as Schedule_tracing_wrap} from 'scheduler/tracing';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberRoot.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function FiberRootNode(containerInfo, tag, hydrate) {
this.entanglements = createLaneMap(NoLanes);

if (enableCache) {
this.caches = createLaneMap(null);
this.pooledCache = null;
this.pooledCacheLanes = NoLanes;
}

if (supportsHydration) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberUnwindWork.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ function unwindInterruptedWork(interruptedWork: Fiber, renderLanes: Lanes) {
break;
}
case HostRoot: {
popHostContainer(interruptedWork);
if (enableCache) {
const root: FiberRoot = interruptedWork.stateNode;
popRootCachePool(root, renderLanes);

const cache: Cache = interruptedWork.memoizedState.cache;
popCacheProvider(interruptedWork, cache);
}
popHostContainer(interruptedWork);
popTopLevelLegacyContextObject(interruptedWork);
resetMutableSourceWorkInProgressVersions();
break;
Expand Down

0 comments on commit 59aea20

Please sign in to comment.