File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ import {getPublicInstance} from './ReactFiberConfig';
4646import {
4747 captureCommitPhaseError ,
4848 setIsRunningInsertionEffect ,
49- getExecutionContext ,
50- CommitContext ,
5149} from './ReactFiberWorkLoop' ;
5250import {
5351 NoFlags as NoHookEffect ,
@@ -917,7 +915,7 @@ export function commitProfilerUpdate(
917915 commitTime : number ,
918916 effectDuration : number ,
919917) {
920- if ( enableProfilerTimer && getExecutionContext ( ) & CommitContext ) {
918+ if ( enableProfilerTimer ) {
921919 try {
922920 if ( __DEV__ ) {
923921 runWithFiberInDEV (
Original file line number Diff line number Diff line change @@ -142,8 +142,6 @@ import {
142142 addMarkerProgressCallbackToPendingTransition ,
143143 addMarkerIncompleteCallbackToPendingTransition ,
144144 addMarkerCompleteCallbackToPendingTransition ,
145- getExecutionContext ,
146- CommitContext ,
147145 setIsRunningInsertionEffect ,
148146} from './ReactFiberWorkLoop' ;
149147import {
@@ -2764,11 +2762,7 @@ function commitPassiveMountOnFiber(
27642762
27652763 // Only Profilers with work in their subtree will have a Passive effect scheduled.
27662764 if ( flags & Passive ) {
2767- if (
2768- enableProfilerTimer &&
2769- enableProfilerCommitHooks &&
2770- getExecutionContext ( ) & CommitContext
2771- ) {
2765+ if ( enableProfilerTimer && enableProfilerCommitHooks ) {
27722766 const { passiveEffectDuration} = finishedWork . stateNode ;
27732767
27742768 commitProfilerPostCommit (
You can’t perform that action at this time.
0 commit comments