MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / precacheNode

Function precacheNode

bundle.js:5616–5616  ·  view source on GitHub ↗

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

(inst,node)

Source from the content-addressed store, hash-verified

5614 * Populate `_hostNode` on the rendered host/text component with the given
5615 * DOM node. The passed `inst` can be a composite.
5616 */function precacheNode(inst,node){var hostInst=getRenderedHostOrTextFromComponent(inst);hostInst._hostNode=node;node[internalInstanceKey]=hostInst;}function precacheFiberNode$1(hostInst,node){node[internalInstanceKey]=hostInst;}function uncacheNode(inst){var node=inst._hostNode;if(node){delete node[internalInstanceKey];inst._hostNode=null;}}/**
5617 * Populate `_hostNode` on each child of `inst`, assuming that the children
5618 * match up with the DOM (element) children of `node`.
5619 *

Callers 1

precacheChildNodesFunction · 0.85

Calls 1

Tested by

no test coverage detected