MCPcopy Index your code
hub / github.com/caseywebdev/react-list / handleThrow

Function handleThrow

docs/index.js:14140–14164  ·  view source on GitHub ↗
(root, thrownValue)

Source from the content-addressed store, hash-verified

14138 return timeoutHandle;
14139}
14140function handleThrow(root, thrownValue) {
14141 currentlyRenderingFiber$1 = null;
14142 ReactSharedInternals.H = ContextOnlyDispatcher;
14143 thrownValue === SuspenseException
14144 ? ((thrownValue = getSuspendedThenable()),
14145 (workInProgressSuspendedReason = 3))
14146 : thrownValue === SuspenseyCommitException
14147 ? ((thrownValue = getSuspendedThenable()),
14148 (workInProgressSuspendedReason = 4))
14149 : (workInProgressSuspendedReason =
14150 thrownValue === SelectiveHydrationException
14151 ? 8
14152 : null !== thrownValue &&
14153 "object" === typeof thrownValue &&
14154 "function" === typeof thrownValue.then
14155 ? 6
14156 : 1);
14157 workInProgressThrownValue = thrownValue;
14158 null === workInProgress &&
14159 ((workInProgressRootExitStatus = 1),
14160 logUncaughtError(
14161 root,
14162 createCapturedValueAtFiber(thrownValue, root.current)
14163 ));
14164}
14165function pushDispatcher() {
14166 var prevDispatcher = ReactSharedInternals.H;
14167 ReactSharedInternals.H = ContextOnlyDispatcher;

Callers 2

renderRootSyncFunction · 0.85
renderRootConcurrentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…