Skip to content

Commit

Permalink
Remove unnecessary stack (facebook#18707)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored Apr 23, 2020
1 parent a2fb84b commit b58dec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/react-reconciler/src/ReactFiberThrow.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import {
ForceUpdate,
enqueueUpdate,
} from './ReactUpdateQueue.new';
import {getStackByFiberInDevAndProd} from './ReactFiberComponentStack';
import {markFailedErrorBoundaryForHotReloading} from './ReactFiberHotReloading.new';
import {
suspenseStackCursor,
Expand Down Expand Up @@ -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.',
);
}

Expand Down
4 changes: 1 addition & 3 deletions packages/react-reconciler/src/ReactFiberThrow.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
ForceUpdate,
enqueueUpdate,
} from './ReactUpdateQueue.old';
import {getStackByFiberInDevAndProd} from './ReactFiberComponentStack';
import {markFailedErrorBoundaryForHotReloading} from './ReactFiberHotReloading.old';
import {
suspenseStackCursor,
Expand Down Expand Up @@ -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.',
);
}

Expand Down

0 comments on commit b58dec9

Please sign in to comment.