Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Jan 31, 2022
1 parent a6a05e0 commit a902b50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberCompleteWork.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ import {
prepareToHydrateHostInstance,
prepareToHydrateHostTextInstance,
prepareToHydrateHostSuspenseInstance,
warnDeleteNextHydratableInstance,
warnUnhydratedNextInstance,
popHydrationState,
resetHydrationState,
getIsHydrating,
Expand Down Expand Up @@ -1035,7 +1035,7 @@ function completeWork(
(workInProgress.mode & ConcurrentMode) !== NoMode &&
(workInProgress.flags & DidCapture) === NoFlags
) {
warnDeleteNextHydratableInstance(workInProgress);
warnUnhydratedNextInstance(workInProgress);
resetHydrationState();
workInProgress.flags |=
ForceClientRender | Incomplete | ShouldCapture;
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberCompleteWork.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ import {
prepareToHydrateHostInstance,
prepareToHydrateHostTextInstance,
prepareToHydrateHostSuspenseInstance,
warnDeleteNextHydratableInstance,
warnUnhydratedNextInstance,
popHydrationState,
resetHydrationState,
getIsHydrating,
Expand Down Expand Up @@ -1034,7 +1034,7 @@ function completeWork(
hasUnhydratedTailNodes() &&
(workInProgress.flags & DidCapture) === NoFlags
) {
warnDeleteNextHydratableInstance(workInProgress);
warnUnhydratedNextInstance(workInProgress);
resetHydrationState();
workInProgress.flags |=
ForceClientRender | Incomplete | ShouldCapture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function popHydrationState(fiber: Fiber): boolean {
) {
let nextInstance = nextHydratableInstance;
if (nextInstance) {
warnDeleteNextHydratableInstance(fiber);
warnUnhydratedNextInstance(fiber);
throwOnHydrationMismatchIfConcurrentMode(fiber);
while (nextInstance) {
deleteHydratableInstance(fiber, nextInstance);
Expand All @@ -576,7 +576,7 @@ function hasUnhydratedTailNodes() {
return isHydrating && nextHydratableInstance !== null;
}

function warnDeleteNextHydratableInstance(fiber: Fiber) {
function warnUnhydratedNextInstance(fiber: Fiber) {
if (nextHydratableInstance) {
warnUnhydratedInstance(fiber, nextHydratableInstance);
}
Expand Down Expand Up @@ -607,6 +607,6 @@ export {
prepareToHydrateHostTextInstance,
prepareToHydrateHostSuspenseInstance,
popHydrationState,
hasMore,
warnDeleteNextHydratableInstance,
hasUnhydratedTailNodes,
warnUnhydratedNextInstance,
};
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function popHydrationState(fiber: Fiber): boolean {
) {
let nextInstance = nextHydratableInstance;
if (nextInstance) {
warnDeleteNextHydratableInstance(fiber);
warnUnhydratedNextInstance(fiber);
throwOnHydrationMismatchIfConcurrentMode(fiber);
while (nextInstance) {
deleteHydratableInstance(fiber, nextInstance);
Expand All @@ -576,7 +576,7 @@ function hasUnhydratedTailNodes() {
return isHydrating && nextHydratableInstance !== null;
}

function warnDeleteNextHydratableInstance(fiber: Fiber) {
function warnUnhydratedNextInstance(fiber: Fiber) {
if (nextHydratableInstance) {
warnUnhydratedInstance(fiber, nextHydratableInstance);
}
Expand Down Expand Up @@ -608,5 +608,5 @@ export {
prepareToHydrateHostSuspenseInstance,
popHydrationState,
hasUnhydratedTailNodes,
warnDeleteNextHydratableInstance,
warnUnhydratedNextInstance,
};

0 comments on commit a902b50

Please sign in to comment.