Skip to content

Commit

Permalink
Remove unnecessary interaction tracing ping wrapper (#16777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored Sep 13, 2019
1 parent 137ea78 commit 0c0b30b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/react-reconciler/src/ReactFiberThrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import type {Update} from './ReactUpdateQueue';
import type {Thenable} from './ReactFiberWorkLoop';
import type {SuspenseContext} from './ReactFiberSuspenseContext';

import {unstable_wrap as Schedule_tracing_wrap} from 'scheduler/tracing';
import getComponentName from 'shared/getComponentName';
import warningWithoutStack from 'shared/warningWithoutStack';
import {
Expand All @@ -31,7 +30,6 @@ import {
ShouldCapture,
LifecycleEffectMask,
} from 'shared/ReactSideEffectTags';
import {enableSchedulerTracing} from 'shared/ReactFeatureFlags';
import {NoMode, BatchedMode} from './ReactTypeOfMode';
import {shouldCaptureSuspense} from './ReactFiberSuspenseComponent';

Expand Down Expand Up @@ -173,11 +171,6 @@ function attachPingListener(
thenable,
renderExpirationTime,
);
if (enableSchedulerTracing) {
if (thenable.__reactDoNotTraceInteractions !== true) {
ping = Schedule_tracing_wrap(ping);
}
}
thenable.then(ping, ping);
}
}
Expand Down

0 comments on commit 0c0b30b

Please sign in to comment.