performFullCleanup() — react Function Reference
Architecture documentation for the performFullCleanup() function in index.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7fa40630_a09a_0369_6562_be6b1a0416b5["performFullCleanup()"] b5e42467_7633_e234_1d51_a93bfc4818c7["index.js"] 7fa40630_a09a_0369_6562_be6b1a0416b5 -->|defined in| b5e42467_7633_e234_1d51_a93bfc4818c7 eca1c06b_bfad_5fe4_dfa2_3a0c06ef23e6["clearReactPollingInstance()"] 7fa40630_a09a_0369_6562_be6b1a0416b5 -->|calls| eca1c06b_bfad_5fe4_dfa2_3a0c06ef23e6 style 7fa40630_a09a_0369_6562_be6b1a0416b5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-extensions/src/main/index.js lines 498–526
function performFullCleanup() {
// Potentially, if react hasn't loaded yet and user closed the browser DevTools
clearReactPollingInstance();
if (
(componentsPortalContainer ||
profilerPortalContainer ||
suspensePortalContainer) &&
root
) {
// This should also emit bridge.shutdown, but only if this root was mounted
flushSync(() => root.unmount());
} else {
bridge?.shutdown();
}
componentsPortalContainer = null;
profilerPortalContainer = null;
suspensePortalContainer = null;
root = (null: $FlowFixMe);
mostRecentOverrideTab = null;
store = (null: $FlowFixMe);
bridge = (null: $FlowFixMe);
render = (null: $FlowFixMe);
port?.disconnect();
port = (null: $FlowFixMe);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does performFullCleanup() do?
performFullCleanup() is a function in the react codebase, defined in packages/react-devtools-extensions/src/main/index.js.
Where is performFullCleanup() defined?
performFullCleanup() is defined in packages/react-devtools-extensions/src/main/index.js at line 498.
What does performFullCleanup() call?
performFullCleanup() calls 1 function(s): clearReactPollingInstance.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free