MCPcopy Create free account
hub / github.com/reactjs/react-rails / clearCaughtError

Function clearCaughtError

lib/assets/react-source/development/react.js:4028–4041  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4026 return hasError;
4027 }
4028 function clearCaughtError() {
4029 if (hasError) {
4030 var error = caughtError;
4031 hasError = false;
4032 caughtError = null;
4033 return error;
4034 } else {
4035 {
4036 {
4037 throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
4038 }
4039 }
4040 }
4041 }
4042
4043 var getFiberCurrentPropsFromNode = null;
4044 var getInstanceFromNode = null;

Callers 7

safelyDetachRefFunction · 0.85
safelyCallDestroyFunction · 0.85
commitRootImplFunction · 0.85
flushPassiveEffectsImplFunction · 0.85
react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected