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

Function getInstance

packages/react-test-renderer/src/ReactTestRenderer.js:594–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592 root = null;
593 },
594 getInstance() {
595 if (root == null || root.current == null) {
596 return null;
597 }
598 return getPublicRootInstance(root);
599 },
600
601 unstable_flushSync: flushSyncFromReconciler,
602 };

Callers 9

enqueueSetStateFunction · 0.85
enqueueReplaceStateFunction · 0.85
enqueueForceUpdateFunction · 0.85
getContextForSubtreeFunction · 0.85
findHostInstanceFunction · 0.85
enqueueSetStateFunction · 0.85
enqueueReplaceStateFunction · 0.85
enqueueForceUpdateFunction · 0.85

Calls 1

getPublicRootInstanceFunction · 0.90

Tested by

no test coverage detected