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

Function markComponentErrored

packages/react-reconciler/src/ReactFiberDevToolsHook.js:357–370  ·  view source on GitHub ↗
(
  fiber: Fiber,
  thrownValue: mixed,
  lanes: Lanes,
)

Source from the content-addressed store, hash-verified

355}
356
357export function markComponentErrored(
358 fiber: Fiber,
359 thrownValue: mixed,
360 lanes: Lanes,
361): void {
362 if (enableSchedulingProfiler) {
363 if (
364 injectedProfilingHooks !== null &&
365 typeof injectedProfilingHooks.markComponentErrored === 'function'
366 ) {
367 injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
368 }
369 }
370}
371
372export function markComponentSuspended(
373 fiber: Fiber,

Callers 1

handleThrowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected