MCPcopy Create free account
hub / github.com/react/react / injectProfilingHooks

Function injectProfilingHooks

packages/react-reconciler/src/ReactFiberDevToolsHook.js:211–215  ·  view source on GitHub ↗
(
  profilingHooks: DevToolsProfilingHooks,
)

Source from the content-addressed store, hash-verified

209// Profiler API hooks
210
211export function injectProfilingHooks(
212 profilingHooks: DevToolsProfilingHooks,
213): void {
214 injectedProfilingHooks = profilingHooks;
215}
216
217export function markCommitStarted(lanes: Lanes): void {
218 if (enableSchedulingProfiler) {

Callers 1

attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected