@samitouri / QOS-React-2 / commits / 0c0b30b8c7

Remove unnecessary interaction tracing ping wrapper (#16777)

Brian Vaughn committed Sep 13, 2019 at 11:04 UTC 0c0b30b8c742d891ad29da0db8bd4ba21021c640
1 file changed -7
packages/react-reconciler/src/ReactFiberThrow.js
-7
@@ -15,7 +15,6 @@ import type {Update} from './ReactUpdateQueue';
15 import type {Thenable} from './ReactFiberWorkLoop';
16 import type {SuspenseContext} from './ReactFiberSuspenseContext';
17
18 -import {unstable_wrap as Schedule_tracing_wrap} from 'scheduler/tracing';
18 import getComponentName from 'shared/getComponentName';
19 import warningWithoutStack from 'shared/warningWithoutStack';
20 import {
@@ -31,7 +30,6 @@ import {
30 ShouldCapture,
31 LifecycleEffectMask,
32 } from 'shared/ReactSideEffectTags';
34 -import {enableSchedulerTracing} from 'shared/ReactFeatureFlags';
33 import {NoMode, BatchedMode} from './ReactTypeOfMode';
34 import {shouldCaptureSuspense} from './ReactFiberSuspenseComponent';
35
@@ -173,11 +171,6 @@ function attachPingListener(
171 thenable,
172 renderExpirationTime,
173 );
176 - if (enableSchedulerTracing) {
177 - if (thenable.__reactDoNotTraceInteractions !== true) {
178 - ping = Schedule_tracing_wrap(ping);
179 - }
180 - }
174 thenable.then(ping, ping);
175 }
176 }