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

Function reload

packages/react-devtools-core/src/standalone.js:105–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105function reload() {
106 safeUnmount();
107
108 node.innerHTML = '';
109
110 setTimeout(() => {
111 root = createRoot(node);
112 root.render(
113 createElement(DevTools, {
114 bridge: ((bridge: any): FrontendBridge),
115 canViewElementSourceFunction,
116 hookNamesModuleLoaderFunction,
117 showTabBar: true,
118 store: ((store: any): Store),
119 warnIfLegacyBackendDetected: true,
120 viewElementSourceFunction,
121 fetchFileWithCaching,
122 }),
123 );
124 }, 100);
125}
126
127const resourceCache: Map<string, string> = new Map();
128

Callers 2

openProfilerFunction · 0.85
initializeFunction · 0.85

Calls 4

createRootFunction · 0.90
createElementFunction · 0.90
safeUnmountFunction · 0.85
renderMethod · 0.65

Tested by

no test coverage detected