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

Function safeUnmount

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

Source from the content-addressed store, hash-verified

94}
95
96function safeUnmount() {
97 flushSync(() => {
98 if (root !== null) {
99 root.unmount();
100 root = null;
101 }
102 });
103}
104
105function reload() {
106 safeUnmount();

Callers 3

reloadFunction · 0.85
onDisconnectedFunction · 0.85
onErrorFunction · 0.85

Calls 1

flushSyncFunction · 0.85

Tested by

no test coverage detected