ensureInitialHTMLIsCleared() — react Function Reference
Architecture documentation for the ensureInitialHTMLIsCleared() function in index.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a17b972e_da5c_8363_37f8_381173484aff["ensureInitialHTMLIsCleared()"] b5e42467_7633_e234_1d51_a93bfc4818c7["index.js"] a17b972e_da5c_8363_37f8_381173484aff -->|defined in| b5e42467_7633_e234_1d51_a93bfc4818c7 9e41b298_cbab_7d62_b737_6a99e25293a4["createComponentsPanel()"] 9e41b298_cbab_7d62_b737_6a99e25293a4 -->|calls| a17b972e_da5c_8363_37f8_381173484aff 6dd961d3_298e_39d3_c501_0143d429fc2f["createElementsInspectPanel()"] 6dd961d3_298e_39d3_c501_0143d429fc2f -->|calls| a17b972e_da5c_8363_37f8_381173484aff b371137d_1853_8d32_ae95_4a51462cd828["createProfilerPanel()"] b371137d_1853_8d32_ae95_4a51462cd828 -->|calls| a17b972e_da5c_8363_37f8_381173484aff dbf29cfb_6f44_140e_1337_d4c8eaf0d96e["createSourcesEditorPanel()"] dbf29cfb_6f44_140e_1337_d4c8eaf0d96e -->|calls| a17b972e_da5c_8363_37f8_381173484aff 2028470c_71b0_2765_a3f2_02e5ff13cefc["createSuspensePanel()"] 2028470c_71b0_2765_a3f2_02e5ff13cefc -->|calls| a17b972e_da5c_8363_37f8_381173484aff style a17b972e_da5c_8363_37f8_381173484aff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-extensions/src/main/index.js lines 244–253
function ensureInitialHTMLIsCleared(
container: HTMLElement & {_hasInitialHTMLBeenCleared?: boolean},
) {
if (container._hasInitialHTMLBeenCleared) {
return;
}
container.innerHTML = '';
container._hasInitialHTMLBeenCleared = true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does ensureInitialHTMLIsCleared() do?
ensureInitialHTMLIsCleared() is a function in the react codebase, defined in packages/react-devtools-extensions/src/main/index.js.
Where is ensureInitialHTMLIsCleared() defined?
ensureInitialHTMLIsCleared() is defined in packages/react-devtools-extensions/src/main/index.js at line 244.
What calls ensureInitialHTMLIsCleared()?
ensureInitialHTMLIsCleared() is called by 5 function(s): createComponentsPanel, createElementsInspectPanel, createProfilerPanel, createSourcesEditorPanel, createSuspensePanel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free