MCPcopy Create free account
hub / github.com/didi/mpx / describeComponentFrame

Function describeComponentFrame

packages/utils/src/componentError.js:14–25  ·  view source on GitHub ↗
(name, ownerName)

Source from the content-addressed store, hash-verified

12let stopWhile = false
13
14function describeComponentFrame(name, ownerName) {
15 let sourceInfo = ''
16 if (ownerName) {
17 sourceInfo = ` (created by ${ownerName})`
18 }
19
20 if (name === 'MpxPage') {
21 stopWhile = true
22 }
23
24 return `\n in (${name || 'Unknown'}) ${sourceInfo}`
25}
26
27function describeFunctionComponentFrame(fn, ownerFn) {
28 if (!fn) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected