File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import {
4848 setIsRunningInsertionEffect ,
4949 getExecutionContext ,
5050 CommitContext ,
51- NoContext ,
5251} from './ReactFiberWorkLoop' ;
5352import {
5453 NoFlags as NoHookEffect ,
@@ -81,8 +80,7 @@ function shouldProfile(current: Fiber): boolean {
8180 return (
8281 enableProfilerTimer &&
8382 enableProfilerCommitHooks &&
84- ( current . mode & ProfileMode ) !== NoMode &&
85- ( getExecutionContext ( ) & CommitContext ) !== NoContext
83+ ( current . mode & ProfileMode ) !== NoMode
8684 ) ;
8785}
8886
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ import {
144144 addMarkerCompleteCallbackToPendingTransition ,
145145 getExecutionContext ,
146146 CommitContext ,
147- NoContext ,
148147 setIsRunningInsertionEffect ,
149148} from './ReactFiberWorkLoop' ;
150149import {
@@ -230,8 +229,7 @@ function shouldProfile(current: Fiber): boolean {
230229 return (
231230 enableProfilerTimer &&
232231 enableProfilerCommitHooks &&
233- ( current . mode & ProfileMode ) !== NoMode &&
234- ( getExecutionContext ( ) & CommitContext ) !== NoContext
232+ ( current . mode & ProfileMode ) !== NoMode
235233 ) ;
236234}
237235
You can’t perform that action at this time.
0 commit comments