Skip to content

Commit 0c0b30b

Browse files
author
Brian Vaughn
authored
Remove unnecessary interaction tracing ping wrapper (#16777)
1 parent 137ea78 commit 0c0b30b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/react-reconciler/src/ReactFiberThrow.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import type {Update} from './ReactUpdateQueue';
1515
import type {Thenable} from './ReactFiberWorkLoop';
1616
import type {SuspenseContext} from './ReactFiberSuspenseContext';
1717

18-
import {unstable_wrap as Schedule_tracing_wrap} from 'scheduler/tracing';
1918
import getComponentName from 'shared/getComponentName';
2019
import warningWithoutStack from 'shared/warningWithoutStack';
2120
import {
@@ -31,7 +30,6 @@ import {
3130
ShouldCapture,
3231
LifecycleEffectMask,
3332
} from 'shared/ReactSideEffectTags';
34-
import {enableSchedulerTracing} from 'shared/ReactFeatureFlags';
3533
import {NoMode, BatchedMode} from './ReactTypeOfMode';
3634
import {shouldCaptureSuspense} from './ReactFiberSuspenseComponent';
3735

@@ -173,11 +171,6 @@ function attachPingListener(
173171
thenable,
174172
renderExpirationTime,
175173
);
176-
if (enableSchedulerTracing) {
177-
if (thenable.__reactDoNotTraceInteractions !== true) {
178-
ping = Schedule_tracing_wrap(ping);
179-
}
180-
}
181174
thenable.then(ping, ping);
182175
}
183176
}

0 commit comments

Comments
 (0)