MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / clearNetworkLogs

Function clearNetworkLogs

app/utils/devtools.js:16–25  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

14export const isOpenInEditorEnabled = () => enabled
15
16export const clearNetworkLogs = (win) => {
17 if (win.devToolsWebContents) {
18 return win.devToolsWebContents.executeJavaScript(`setTimeout(() => {
19 const { network } = UI.panels;
20 if (network && network.networkLogView && network.networkLogView.reset) {
21 network.networkLogView.reset()
22 }
23 }, 100)`)
24 }
25}
26
27export const selectRNDebuggerWorkerContext = (win) => {
28 if (win.devToolsWebContents) {

Callers 1

clearLogsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected