MCPcopy
hub / github.com/facebook/react / shouldProfile

Function shouldProfile

packages/react-reconciler/src/ReactFiberCommitEffects.js:89–95  ·  view source on GitHub ↗
(current: Fiber)

Source from the content-addressed store, hash-verified

87import {runWithFiberInDEV} from './ReactCurrentFiber';
88
89function shouldProfile(current: Fiber): boolean {
90 return (
91 enableProfilerTimer &&
92 enableProfilerCommitHooks &&
93 (current.mode & ProfileMode) !== NoMode
94 );
95}
96
97export function commitHookLayoutEffects(
98 finishedWork: Fiber,

Callers 8

commitHookLayoutEffectsFunction · 0.85
commitAttachRefFunction · 0.85
safelyDetachRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected