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

Function describeBuiltInComponentFrame

dash/deps/react@18.2.0.js:1765–1780  ·  view source on GitHub ↗
(name, source, ownerFn)

Source from the content-addressed store, hash-verified

1763 var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1764 var prefix;
1765 function describeBuiltInComponentFrame(name, source, ownerFn) {
1766 {
1767 if (prefix === undefined) {
1768 // Extract the VM specific prefix used by each line.
1769 try {
1770 throw Error();
1771 } catch (x) {
1772 var match = x.stack.trim().match(/\n( *(at )?)/);
1773 prefix = match && match[1] || '';
1774 }
1775 } // We use the prefix to ensure our stacks line up with native stack frames.
1776
1777
1778 return '\n' + prefix + name;
1779 }
1780 }
1781 var reentry = false;
1782 var componentFrameCache;
1783

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…