GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — root.hydrate -> root.isDehydrated (#22420) · react/react@029fdce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-dom/src/events
      • ReactDOMEventListener.js
      • ReactDOMEventReplaying.js
    • react-reconciler/src
      • ReactFiberBeginWork.new.js
      • ReactFiberBeginWork.old.js
      • ReactFiberCommitWork.new.js
      • ReactFiberCommitWork.old.js
      • ReactFiberCompleteWork.new.js
      • ReactFiberCompleteWork.old.js
      • ReactFiberReconciler.new.js
      • ReactFiberReconciler.old.js
      • ReactFiberRoot.new.js
      • ReactFiberRoot.old.js
      • ReactFiberWorkLoop.new.js
      • ReactFiberWorkLoop.old.js
      • ReactInternalTypes.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-dom/src/events/ReactDOMEventListener.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/events/ReactDOMEventListener.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export function attemptToDispatchEvent(
264264
targetInst = null;
265265
} else if (tag === HostRoot) {
266266
const root: FiberRoot = nearestMounted.stateNode;
267-
if (root.hydrate) {
267+
if (root.isDehydrated) {
268268
// If this happens during a replay something went wrong and it might block
269269
// the whole system.
270270
return getContainerFromFiber(nearestMounted);
Collapse file

‎packages/react-dom/src/events/ReactDOMEventReplaying.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/events/ReactDOMEventReplaying.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function attemptExplicitHydrationTarget(
399399
}
400400
} else if (tag === HostRoot) {
401401
const root: FiberRoot = nearestMounted.stateNode;
402-
if (root.hydrate) {
402+
if (root.isDehydrated) {
403403
queuedTarget.blockedOn = getContainerFromFiber(nearestMounted);
404404
// We don't currently have a way to increase the priority of
405405
// a root other than sync.
Collapse file

‎packages/react-reconciler/src/ReactFiberBeginWork.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberBeginWork.new.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
12951295
resetHydrationState();
12961296
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
12971297
}
1298-
if (root.hydrate && enterHydrationState(workInProgress)) {
1298+
if (root.isDehydrated && enterHydrationState(workInProgress)) {
12991299
// If we don't have any current children this might be the first pass.
13001300
// We always try to hydrate. If this isn't a hydration pass there won't
13011301
// be any children to hydrate which is effectively the same thing as
Collapse file

‎packages/react-reconciler/src/ReactFiberBeginWork.old.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberBeginWork.old.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ function updateHostRoot(current, workInProgress, renderLanes) {
12951295
resetHydrationState();
12961296
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
12971297
}
1298-
if (root.hydrate && enterHydrationState(workInProgress)) {
1298+
if (root.isDehydrated && enterHydrationState(workInProgress)) {
12991299
// If we don't have any current children this might be the first pass.
13001300
// We always try to hydrate. If this isn't a hydration pass there won't
13011301
// be any children to hydrate which is effectively the same thing as
Collapse file

‎packages/react-reconciler/src/ReactFiberCommitWork.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberCommitWork.new.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,9 +1827,9 @@ function commitWork(current: Fiber | null, finishedWork: Fiber): void {
18271827
case HostRoot: {
18281828
if (supportsHydration) {
18291829
const root: FiberRoot = finishedWork.stateNode;
1830-
if (root.hydrate) {
1830+
if (root.isDehydrated) {
18311831
// We've just hydrated. No need to hydrate again.
1832-
root.hydrate = false;
1832+
root.isDehydrated = false;
18331833
commitHydratedContainer(root.containerInfo);
18341834
}
18351835
}
@@ -1933,9 +1933,9 @@ function commitWork(current: Fiber | null, finishedWork: Fiber): void {
19331933
case HostRoot: {
19341934
if (supportsHydration) {
19351935
const root: FiberRoot = finishedWork.stateNode;
1936-
if (root.hydrate) {
1936+
if (root.isDehydrated) {
19371937
// We've just hydrated. No need to hydrate again.
1938-
root.hydrate = false;
1938+
root.isDehydrated = false;
19391939
commitHydratedContainer(root.containerInfo);
19401940
}
19411941
}
Collapse file

‎packages/react-reconciler/src/ReactFiberCommitWork.old.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberCommitWork.old.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,9 +1827,9 @@ function commitWork(current: Fiber | null, finishedWork: Fiber): void {
18271827
case HostRoot: {
18281828
if (supportsHydration) {
18291829
const root: FiberRoot = finishedWork.stateNode;
1830-
if (root.hydrate) {
1830+
if (root.isDehydrated) {
18311831
// We've just hydrated. No need to hydrate again.
1832-
root.hydrate = false;
1832+
root.isDehydrated = false;
18331833
commitHydratedContainer(root.containerInfo);
18341834
}
18351835
}
@@ -1933,9 +1933,9 @@ function commitWork(current: Fiber | null, finishedWork: Fiber): void {
19331933
case HostRoot: {
19341934
if (supportsHydration) {
19351935
const root: FiberRoot = finishedWork.stateNode;
1936-
if (root.hydrate) {
1936+
if (root.isDehydrated) {
19371937
// We've just hydrated. No need to hydrate again.
1938-
root.hydrate = false;
1938+
root.isDehydrated = false;
19391939
commitHydratedContainer(root.containerInfo);
19401940
}
19411941
}
Collapse file

‎packages/react-reconciler/src/ReactFiberCompleteWork.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberCompleteWork.new.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function completeWork(
867867
// If we hydrated, then we'll need to schedule an update for
868868
// the commit side-effects on the root.
869869
markUpdate(workInProgress);
870-
} else if (!fiberRoot.hydrate) {
870+
} else if (!fiberRoot.isDehydrated) {
871871
// Schedule an effect to clear this container at the start of the next commit.
872872
// This handles the case of React rendering into a container with previous children.
873873
// It's also safe to do for updates too, because current.child would only be null
Collapse file

‎packages/react-reconciler/src/ReactFiberCompleteWork.old.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberCompleteWork.old.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function completeWork(
867867
// If we hydrated, then we'll need to schedule an update for
868868
// the commit side-effects on the root.
869869
markUpdate(workInProgress);
870-
} else if (!fiberRoot.hydrate) {
870+
} else if (!fiberRoot.isDehydrated) {
871871
// Schedule an effect to clear this container at the start of the next commit.
872872
// This handles the case of React rendering into a container with previous children.
873873
// It's also safe to do for updates too, because current.child would only be null
Collapse file

‎packages/react-reconciler/src/ReactFiberReconciler.new.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberReconciler.new.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export function attemptSynchronousHydration(fiber: Fiber): void {
353353
switch (fiber.tag) {
354354
case HostRoot:
355355
const root: FiberRoot = fiber.stateNode;
356-
if (root.hydrate) {
356+
if (root.isDehydrated) {
357357
// Flush the first scheduled "update".
358358
const lanes = getHighestPriorityPendingLanes(root);
359359
flushRoot(root, lanes);
Collapse file

‎packages/react-reconciler/src/ReactFiberReconciler.old.js‎

Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberReconciler.old.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export function attemptSynchronousHydration(fiber: Fiber): void {
353353
switch (fiber.tag) {
354354
case HostRoot:
355355
const root: FiberRoot = fiber.stateNode;
356-
if (root.hydrate) {
356+
if (root.isDehydrated) {
357357
// Flush the first scheduled "update".
358358
const lanes = getHighestPriorityPendingLanes(root);
359359
flushRoot(root, lanes);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.