@@ -125,6 +125,7 @@ import {
125125import  { 
126126  getCurrentFiberOwnerNameInDevOrNull , 
127127  setIsRendering , 
128+   setCurrentFiber , 
128129}  from  './ReactCurrentFiber' ; 
129130import  { 
130131  resolveFunctionForHotReloading , 
@@ -296,7 +297,6 @@ import {
296297  pushRootMarkerInstance , 
297298  TransitionTracingMarker , 
298299}  from  './ReactFiberTracingMarkerComponent' ; 
299- import  { setCurrentOwner }  from  './ReactFiberCurrentOwner' ; 
300300
301301// A special exception that's used to unwind the stack when an update flows 
302302// into a dehydrated boundary. 
@@ -432,7 +432,6 @@ function updateForwardRef(
432432    markComponentRenderStarted ( workInProgress ) ; 
433433  } 
434434  if  ( __DEV__ )  { 
435-     setCurrentOwner ( workInProgress ) ; 
436435    setIsRendering ( true ) ; 
437436    nextChildren  =  renderWithHooks ( 
438437      current , 
@@ -1150,7 +1149,6 @@ function updateFunctionComponent(
11501149    markComponentRenderStarted ( workInProgress ) ; 
11511150  } 
11521151  if  ( __DEV__ )  { 
1153-     setCurrentOwner ( workInProgress ) ; 
11541152    setIsRendering ( true ) ; 
11551153    nextChildren  =  renderWithHooks ( 
11561154      current , 
@@ -1373,7 +1371,7 @@ function finishClassComponent(
13731371
13741372  // Rerender 
13751373  if  ( __DEV__  ||  ! disableStringRefs )  { 
1376-     setCurrentOwner ( workInProgress ) ; 
1374+     setCurrentFiber ( workInProgress ) ; 
13771375  } 
13781376  let  nextChildren ; 
13791377  if  ( 
@@ -3419,7 +3417,6 @@ function updateContextConsumer(
34193417  } 
34203418  let  newChildren ; 
34213419  if  ( __DEV__ )  { 
3422-     setCurrentOwner ( workInProgress ) ; 
34233420    setIsRendering ( true ) ; 
34243421    newChildren  =  render ( newValue ) ; 
34253422    setIsRendering ( false ) ; 
0 commit comments