( parent: null | ComponentStackNode, type: Function | string | symbol, owner: void | null | ReactComponentInfo | ComponentStackNode, // DEV only stack: void | null | string | Error, // DEV only )
| 1108 | } |
| 1109 | |
| 1110 | function 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 | |
| 1130 | function replaceSuspenseComponentStackWithSuspenseFallbackStack( |
| 1131 | componentStack: null | ComponentStackNode, |
no outgoing calls
no test coverage detected