Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reuse variable instead of recomputing check
Co-authored-by: Ruslan Lesiutin <[email protected]>
  • Loading branch information
sebmarkbage and hoxyq authored Jul 23, 2024
commit d69cf59c46ee90401fe3d51613eaced2071c4edc
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function patch({
) {
const enableOwnerStacks = supportsOwnerStacks(current);
let componentStack = '';
if (supportsOwnerStacks(current)) {
if (enableOwnerStacks) {
// Prefix the owner stack with the current stack. I.e. what called
// console.error. While this will also be part of the native stack,
// it is hidden and not presented alongside this argument so we print
Expand Down