MCPcopy Create free account
hub / github.com/Lobos/react-ui / precacheNode

Function precacheNode

docs/lib/react.js:7302–7306  ·  view source on GitHub ↗

* Populate `_nativeNode` on the rendered native/text component with the given * DOM node. The passed `inst` can be a composite.

(inst, node)

Source from the content-addressed store, hash-verified

7300 * DOM node. The passed `inst` can be a composite.
7301 */
7302function precacheNode(inst, node) {
7303 var nativeInst = getRenderedNativeOrTextFromComponent(inst);
7304 nativeInst._nativeNode = node;
7305 node[internalInstanceKey] = nativeInst;
7306}
7307
7308function uncacheNode(inst) {
7309 var node = inst._nativeNode;

Callers 1

precacheChildNodesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…