diff --git a/packages/react-reconciler/src/ReactFiberThrow.new.js b/packages/react-reconciler/src/ReactFiberThrow.new.js index d994d0ee66..8f0a63b8e5 100644 --- a/packages/react-reconciler/src/ReactFiberThrow.new.js +++ b/packages/react-reconciler/src/ReactFiberThrow.new.js @@ -39,7 +39,6 @@ import { ForceUpdate, enqueueUpdate, } from './ReactUpdateQueue.new'; -import {getStackByFiberInDevAndProd} from './ReactFiberComponentStack'; import {markFailedErrorBoundaryForHotReloading} from './ReactFiberHotReloading.new'; import { suspenseStackCursor, @@ -333,8 +332,7 @@ function throwException( ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a component higher in the tree to ' + - 'provide a loading indicator or placeholder to display.' + - getStackByFiberInDevAndProd(sourceFiber), + 'provide a loading indicator or placeholder to display.', ); } diff --git a/packages/react-reconciler/src/ReactFiberThrow.old.js b/packages/react-reconciler/src/ReactFiberThrow.old.js index a091c39b41..4411297d6f 100644 --- a/packages/react-reconciler/src/ReactFiberThrow.old.js +++ b/packages/react-reconciler/src/ReactFiberThrow.old.js @@ -40,7 +40,6 @@ import { ForceUpdate, enqueueUpdate, } from './ReactUpdateQueue.old'; -import {getStackByFiberInDevAndProd} from './ReactFiberComponentStack'; import {markFailedErrorBoundaryForHotReloading} from './ReactFiberHotReloading.old'; import { suspenseStackCursor, @@ -344,8 +343,7 @@ function throwException( ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a component higher in the tree to ' + - 'provide a loading indicator or placeholder to display.' + - getStackByFiberInDevAndProd(sourceFiber), + 'provide a loading indicator or placeholder to display.', ); }