MCPcopy
hub / github.com/facebook/react / scheduleRetry

Function scheduleRetry

packages/react-devtools-core/src/backend.js:104–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 let retryTimeoutID: TimeoutID | null = null;
103
104 function scheduleRetry() {
105 if (retryTimeoutID === null) {
106 // Two seconds because RN had issues with quick retries.
107 retryTimeoutID = setTimeout(
108 () => connectToDevTools(options),
109 retryConnectionDelay,
110 );
111 }
112 }
113
114 if (!isAppActive()) {
115 // If the app is in background, maybe retry later.

Callers 8

connectToDevToolsFunction · 0.85
sendFunction · 0.85
handleCloseFunction · 0.85
handleFailedFunction · 0.85
overrideErrorFunction · 0.85
overrideSuspenseFunction · 0.85

Calls 1

connectToDevToolsFunction · 0.85

Tested by

no test coverage detected