MCPcopy Create free account
hub / github.com/plotly/dash / describeBuiltInComponentFrame

Function describeBuiltInComponentFrame

dash/deps/react-dom@18.3.1.js:983–998  ·  view source on GitHub ↗
(name, source, ownerFn)

Source from the content-addressed store, hash-verified

981 var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
982 var prefix;
983 function describeBuiltInComponentFrame(name, source, ownerFn) {
984 {
985 if (prefix === undefined) {
986 // Extract the VM specific prefix used by each line.
987 try {
988 throw Error();
989 } catch (x) {
990 var match = x.stack.trim().match(/\n( *(at )?)/);
991 prefix = match && match[1] || '';
992 }
993 } // We use the prefix to ensure our stacks line up with native stack frames.
994
995
996 return '\n' + prefix + name;
997 }
998 }
999 var reentry = false;
1000 var componentFrameCache;
1001

Callers 3

describeFiberFunction · 0.70

Calls 2

matchMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…