@@ -618,7 +618,7 @@ function serializeThenable(
618618 task . keyPath , // the server component sequence continues through Promise-as-a-child.
619619 task . implicitSlot ,
620620 request . abortableTasks ,
621- __DEV__ && enableOwnerStacks ? task . debugOwner : null ,
621+ __DEV__ ? task . debugOwner : null ,
622622 __DEV__ && enableOwnerStacks ? task . debugStack : null ,
623623 __DEV__ && enableOwnerStacks ? task . debugTask : null ,
624624 ) ;
@@ -750,7 +750,7 @@ function serializeReadableStream(
750750 task . keyPath ,
751751 task . implicitSlot ,
752752 request . abortableTasks ,
753- __DEV__ && enableOwnerStacks ? task . debugOwner : null ,
753+ __DEV__ ? task . debugOwner : null ,
754754 __DEV__ && enableOwnerStacks ? task . debugStack : null ,
755755 __DEV__ && enableOwnerStacks ? task . debugTask : null ,
756756 ) ;
@@ -849,7 +849,7 @@ function serializeAsyncIterable(
849849 task . keyPath ,
850850 task . implicitSlot ,
851851 request . abortableTasks ,
852- __DEV__ && enableOwnerStacks ? task . debugOwner : null ,
852+ __DEV__ ? task . debugOwner : null ,
853853 __DEV__ && enableOwnerStacks ? task . debugStack : null ,
854854 __DEV__ && enableOwnerStacks ? task . debugTask : null ,
855855 ) ;
@@ -1572,7 +1572,7 @@ function outlineTask(request: Request, task: Task): ReactJSONValue {
15721572 task . keyPath , // unlike outlineModel this one carries along context
15731573 task . implicitSlot ,
15741574 request . abortableTasks ,
1575- __DEV__ && enableOwnerStacks ? task . debugOwner : null ,
1575+ __DEV__ ? task . debugOwner : null ,
15761576 __DEV__ && enableOwnerStacks ? task . debugStack : null ,
15771577 __DEV__ && enableOwnerStacks ? task . debugTask : null ,
15781578 ) ;
@@ -1799,8 +1799,8 @@ function createTask(
17991799 > ) : any ) ;
18001800 if ( __DEV__ ) {
18011801 task . environmentName = request . environmentName ( ) ;
1802+ task . debugOwner = debugOwner ;
18021803 if ( enableOwnerStacks ) {
1803- task . debugOwner = debugOwner ;
18041804 task . debugStack = debugStack ;
18051805 task . debugTask = debugTask ;
18061806 }
@@ -2167,7 +2167,7 @@ function renderModel(
21672167 task . keyPath ,
21682168 task . implicitSlot ,
21692169 request . abortableTasks ,
2170- __DEV__ && enableOwnerStacks ? task . debugOwner : null ,
2170+ __DEV__ ? task . debugOwner : null ,
21712171 __DEV__ && enableOwnerStacks ? task . debugStack : null ,
21722172 __DEV__ && enableOwnerStacks ? task . debugTask : null ,
21732173 ) ;
0 commit comments