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

Function findOwnerStack

docs/lib/react.js:17987–17998  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

17985 * owners, starting at the root and ending with the instance itself.
17986 */
17987 var findOwnerStack = function (instance) {
17988 if (!instance) {
17989 return [];
17990 }
17991
17992 var stack = [];
17993 do {
17994 stack.push(instance);
17995 } while (instance = instance._currentElement._owner);
17996 stack.reverse();
17997 return stack;
17998 };
17999
18000 var didWarn = {};
18001

Callers 1

react.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…