File tree Expand file tree Collapse file tree 2 files changed +215
-216
lines changed Expand file tree Collapse file tree 2 files changed +215
-216
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ function createTree(
202
202
// check to see if we can get the information we were looking for
203
203
if ( tag === 5 ) {
204
204
try {
205
- if ( memoizedProps . children [ 0 ] . _owner ?. memoizedProps !== undefined ) {
205
+ if ( memoizedProps . children && memoizedProps . children [ 0 ] ? ._owner ?. memoizedProps !== undefined ) {
206
206
const propsData = memoizedProps . children [ 0 ] . _owner . memoizedProps ;
207
207
const newPropData = convertDataToString ( propsData , tree . componentData . props ? tree . componentData . props : null ) ;
208
208
tree . componentData = {
@@ -237,7 +237,6 @@ function createTree(
237
237
// if the component uses the useContext hook, we want to grab the co text object and add it to the componentData object for that fiber
238
238
if ( tag === 0 && _debugHookTypes ) {
239
239
componentData . context = convertDataToString ( dependencies ?. firstContext ?. memoizedValue , null ) ;
240
- console . log ( convertDataToString ( componentData . context , null ) , componentData . context ) ;
241
240
}
242
241
// Check if node is a stateful class component
243
242
if ( stateNode && stateNode . state && ( tag === 0 || tag === 1 || tag === 2 ) ) {
You can’t perform that action at this time.
0 commit comments