MCPcopy Create free account
hub / github.com/caseywebdev/react-list / describeBuiltInComponentFrame

Function describeBuiltInComponentFrame

docs/index.js:793–808  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

791 );
792 }
793 function describeBuiltInComponentFrame(name) {
794 if (void 0 === prefix)
795 try {
796 throw Error();
797 } catch (x) {
798 var match = x.stack.trim().match(/\n( *(at )?)/);
799 prefix = (match && match[1]) || "";
800 suffix =
801 -1 < x.stack.indexOf("\n at")
802 ? " (<anonymous>)"
803 : -1 < x.stack.indexOf("@")
804 ? "@unknown:0:0"
805 : "";
806 }
807 return "\n" + prefix + name + suffix;
808 }
809 function describeNativeComponentFrame(fn, construct) {
810 if (!fn || reentry) return "";
811 var frame = componentFrameCache.get(fn);

Callers 4

describeFiberFunction · 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…