MCPcopy Index your code
hub / github.com/caseywebdev/react-list / getInstanceFromNode

Function getInstanceFromNode

docs/index.js:4354–4370  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

4352 return null;
4353}
4354function getInstanceFromNode(node) {
4355 if (
4356 (node = node[internalInstanceKey] || node[internalContainerInstanceKey])
4357 ) {
4358 var tag = node.tag;
4359 if (
4360 5 === tag ||
4361 6 === tag ||
4362 13 === tag ||
4363 26 === tag ||
4364 27 === tag ||
4365 3 === tag
4366 )
4367 return node;
4368 }
4369 return null;
4370}
4371function getNodeFromInstance(inst) {
4372 var tag = inst.tag;
4373 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;

Callers 8

restoreStateOfTargetFunction · 0.85
requestFormResetFunction · 0.85
dispatchEventFunction · 0.85
acquireSingletonInstanceFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…