MCPcopy Index your code
hub / github.com/react/react / createComponentStackFromType

Function createComponentStackFromType

packages/react-server/src/ReactFizzServer.js:1110–1128  ·  view source on GitHub ↗
(
  parent: null | ComponentStackNode,
  type: Function | string | symbol,
  owner: void | null | ReactComponentInfo | ComponentStackNode, // DEV only
  stack: void | null | string | Error, // DEV only
)

Source from the content-addressed store, hash-verified

1108}
1109
1110function createComponentStackFromType(
1111 parent: null | ComponentStackNode,
1112 type: Function | string | symbol,
1113 owner: void | null | ReactComponentInfo | ComponentStackNode, // DEV only
1114 stack: void | null | string | Error, // DEV only
1115): ComponentStackNode {
1116 if (__DEV__) {
1117 return {
1118 parent,
1119 type,
1120 owner,
1121 stack,
1122 };
1123 }
1124 return {
1125 parent,
1126 type,
1127 };
1128}
1129
1130function replaceSuspenseComponentStackWithSuspenseFallbackStack(
1131 componentStack: null | ComponentStackNode,

Calls

no outgoing calls

Tested by

no test coverage detected