File tree 2 files changed +3
-3
lines changed
packages/react-devtools-shared/src/backend
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import {
30
30
getStackByFiberInDevAndProd ,
31
31
getOwnerStackByFiberInDev ,
32
32
supportsOwnerStacks ,
33
- supportsNativeConsoleTasks ,
33
+ supportsConsoleTasks ,
34
34
} from './fiber/DevToolsFiberComponentStack' ;
35
35
import { formatOwnerStack } from './shared/DevToolsOwnerStack' ;
36
36
import { castBool , castBrowserTheme } from '../utils' ;
@@ -251,7 +251,7 @@ export function patch({
251
251
252
252
if (
253
253
consoleSettingsRef . appendComponentStack &&
254
- ! supportsNativeConsoleTasks ( current )
254
+ ! supportsConsoleTasks ( current )
255
255
) {
256
256
const enableOwnerStacks = supportsOwnerStacks ( current ) ;
257
257
let componentStack = '' ;
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export function getStackByFiberInDevAndProd(
108
108
}
109
109
}
110
110
111
- export function supportsNativeConsoleTasks ( fiber : Fiber ) : boolean {
111
+ export function supportsConsoleTasks ( fiber : Fiber ) : boolean {
112
112
// If this Fiber supports native console.createTask then we are already running
113
113
// inside a native async stack trace if it's active - meaning the DevTools is open.
114
114
// Ideally we'd detect if this task was created while the DevTools was open or not.
You can’t perform that action at this time.
0 commit comments