mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove unnecessary stack (#18707)
This commit is contained in:
@@ -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 <Suspense fallback=...> component higher in the tree to ' +
|
||||
'provide a loading indicator or placeholder to display.' +
|
||||
getStackByFiberInDevAndProd(sourceFiber),
|
||||
'provide a loading indicator or placeholder to display.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 <Suspense fallback=...> component higher in the tree to ' +
|
||||
'provide a loading indicator or placeholder to display.' +
|
||||
getStackByFiberInDevAndProd(sourceFiber),
|
||||
'provide a loading indicator or placeholder to display.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user