Skip to content

Commit

Permalink
Consistently use debugOwner field
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jul 19, 2024
1 parent 163365a commit 68a02cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ function serializeThenable(
task.keyPath, // the server component sequence continues through Promise-as-a-child.
task.implicitSlot,
request.abortableTasks,
__DEV__ && enableOwnerStacks ? task.debugOwner : null,
__DEV__ ? task.debugOwner : null,
__DEV__ && enableOwnerStacks ? task.debugStack : null,
__DEV__ && enableOwnerStacks ? task.debugTask : null,
);
Expand Down Expand Up @@ -750,7 +750,7 @@ function serializeReadableStream(
task.keyPath,
task.implicitSlot,
request.abortableTasks,
__DEV__ && enableOwnerStacks ? task.debugOwner : null,
__DEV__ ? task.debugOwner : null,
__DEV__ && enableOwnerStacks ? task.debugStack : null,
__DEV__ && enableOwnerStacks ? task.debugTask : null,
);
Expand Down Expand Up @@ -849,7 +849,7 @@ function serializeAsyncIterable(
task.keyPath,
task.implicitSlot,
request.abortableTasks,
__DEV__ && enableOwnerStacks ? task.debugOwner : null,
__DEV__ ? task.debugOwner : null,
__DEV__ && enableOwnerStacks ? task.debugStack : null,
__DEV__ && enableOwnerStacks ? task.debugTask : null,
);
Expand Down Expand Up @@ -1572,7 +1572,7 @@ function outlineTask(request: Request, task: Task): ReactJSONValue {
task.keyPath, // unlike outlineModel this one carries along context
task.implicitSlot,
request.abortableTasks,
__DEV__ && enableOwnerStacks ? task.debugOwner : null,
__DEV__ ? task.debugOwner : null,
__DEV__ && enableOwnerStacks ? task.debugStack : null,
__DEV__ && enableOwnerStacks ? task.debugTask : null,
);
Expand Down Expand Up @@ -1799,8 +1799,8 @@ function createTask(
>): any);
if (__DEV__) {
task.environmentName = request.environmentName();
task.debugOwner = debugOwner;
if (enableOwnerStacks) {
task.debugOwner = debugOwner;
task.debugStack = debugStack;
task.debugTask = debugTask;
}
Expand Down Expand Up @@ -2167,7 +2167,7 @@ function renderModel(
task.keyPath,
task.implicitSlot,
request.abortableTasks,
__DEV__ && enableOwnerStacks ? task.debugOwner : null,
__DEV__ ? task.debugOwner : null,
__DEV__ && enableOwnerStacks ? task.debugStack : null,
__DEV__ && enableOwnerStacks ? task.debugTask : null,
);
Expand Down

0 comments on commit 68a02cc

Please sign in to comment.