GeezerVison is showing github.com — Remove unnecessary interaction tracing ping wrapper (#16777) · react/react@0c0b30b
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/react-reconciler/src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberThrow.js -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,6 @@ import type {Update} from './ReactUpdateQueue'; |
15 | 15 | import type {Thenable} from './ReactFiberWorkLoop'; |
16 | 16 | import type {SuspenseContext} from './ReactFiberSuspenseContext'; |
17 | 17 |
|
18 | | -import {unstable_wrap as Schedule_tracing_wrap} from 'scheduler/tracing'; |
19 | 18 | import getComponentName from 'shared/getComponentName'; |
20 | 19 | import warningWithoutStack from 'shared/warningWithoutStack'; |
21 | 20 | import { |
@@ -31,7 +30,6 @@ import { |
31 | 30 | ShouldCapture, |
32 | 31 | LifecycleEffectMask, |
33 | 32 | } from 'shared/ReactSideEffectTags'; |
34 | | -import {enableSchedulerTracing} from 'shared/ReactFeatureFlags'; |
35 | 33 | import {NoMode, BatchedMode} from './ReactTypeOfMode'; |
36 | 34 | import {shouldCaptureSuspense} from './ReactFiberSuspenseComponent'; |
37 | 35 |
|
@@ -173,11 +171,6 @@ function attachPingListener( |
173 | 171 | thenable, |
174 | 172 | renderExpirationTime, |
175 | 173 | ); |
176 | | - if (enableSchedulerTracing) { |
177 | | - if (thenable.__reactDoNotTraceInteractions !== true) { |
178 | | - ping = Schedule_tracing_wrap(ping); |
179 | | - } |
180 | | - } |
181 | 174 | thenable.then(ping, ping); |
182 | 175 | } |
183 | 176 | } |
|