MCPcopy Index your code
hub / github.com/facebook/react / wakeRejections

Function wakeRejections

packages/react-devtools-shared/src/hookNamesCache.js:121–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 rejectCallbacks.clear();
120 };
121 const wakeRejections = () => {
122 if (timeoutID) {
123 clearTimeout(timeoutID);
124 timeoutID = null;
125 }
126 // This assumes they won't throw.
127 rejectCallbacks.forEach(callback => callback((thenable: any).reason));
128 rejectCallbacks.clear();
129 callbacks.clear();
130 };
131
132 const handleLoadComplete = (durationMs: number): void => {
133 // Log duration for parsing hook names

Callers 1

loadHookNamesFunction · 0.70

Calls 3

forEachMethod · 0.65
callbackFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected