MCPcopy Create free account
hub / github.com/microsoft/SandDance / clearCaughtError

Function clearCaughtError

docs/external/js/react-dom.development.js:327–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 return hasError;
326 }
327 function clearCaughtError() {
328 if (hasError) {
329 var error = caughtError;
330 hasError = false;
331 caughtError = null;
332 return error;
333 } else {
334 {
335 {
336 throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
337 }
338 }
339 }
340 }
341
342 var getFiberCurrentPropsFromNode = null;
343 var getInstanceFromNode = null;

Callers 7

safelyDetachRefFunction · 0.85
safelyCallDestroyFunction · 0.85
commitRootImplFunction · 0.85
flushPassiveEffectsImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected