@@ -20,70 +20,70 @@ import getLinkComponent from './getLinkComponent';
20
20
import { toggleExpanded , setCurrentTabInApp } from '../../../actions/actions' ;
21
21
import { useStoreContext } from '../../../store' ;
22
22
23
- const exclude = [
24
- 'childExpirationTime' ,
25
- 'staticContext' ,
26
- '_debugSource' ,
27
- 'actualDuration' ,
28
- 'actualStartTime' ,
29
- 'treeBaseDuration' ,
30
- '_debugID' ,
31
- '_debugIsCurrentlyTiming' ,
32
- 'selfBaseDuration' ,
33
- 'expirationTime' ,
34
- 'effectTag' ,
35
- 'alternate' ,
36
- '_owner' ,
37
- '_store' ,
38
- 'get key' ,
39
- 'ref' ,
40
- '_self' ,
41
- '_source' ,
42
- 'firstBaseUpdate' ,
43
- 'updateQueue' ,
44
- 'lastBaseUpdate' ,
45
- 'shared' ,
46
- 'responders' ,
47
- 'pending' ,
48
- 'lanes' ,
49
- 'childLanes' ,
50
- 'effects' ,
51
- 'memoizedState' ,
52
- 'pendingProps' ,
53
- 'lastEffect' ,
54
- 'firstEffect' ,
55
- 'tag' ,
56
- 'baseState' ,
57
- 'baseQueue' ,
58
- 'dependencies' ,
59
- 'Consumer' ,
60
- 'context' ,
61
- '_currentRenderer' ,
62
- '_currentRenderer2' ,
63
- 'mode' ,
64
- 'flags' ,
65
- 'nextEffect' ,
66
- 'sibling' ,
67
- 'create' ,
68
- 'deps' ,
69
- 'next' ,
70
- 'destroy' ,
71
- 'parentSub' ,
72
- 'child' ,
73
- 'key' ,
74
- 'return' ,
75
- 'children' ,
76
- '$$typeof' ,
77
- '_threadCount' ,
78
- '_calculateChangedBits' ,
79
- '_currentValue' ,
80
- '_currentValue2' ,
81
- 'Provider' ,
82
- '_context' ,
83
- 'stateNode' ,
84
- 'elementType' ,
85
- 'type' ,
86
- ] ;
23
+ // const exclude = [
24
+ // 'childExpirationTime',
25
+ // 'staticContext',
26
+ // '_debugSource',
27
+ // 'actualDuration',
28
+ // 'actualStartTime',
29
+ // 'treeBaseDuration',
30
+ // '_debugID',
31
+ // '_debugIsCurrentlyTiming',
32
+ // 'selfBaseDuration',
33
+ // 'expirationTime',
34
+ // 'effectTag',
35
+ // 'alternate',
36
+ // '_owner',
37
+ // '_store',
38
+ // 'get key',
39
+ // 'ref',
40
+ // '_self',
41
+ // '_source',
42
+ // 'firstBaseUpdate',
43
+ // 'updateQueue',
44
+ // 'lastBaseUpdate',
45
+ // 'shared',
46
+ // 'responders',
47
+ // 'pending',
48
+ // 'lanes',
49
+ // 'childLanes',
50
+ // 'effects',
51
+ // 'memoizedState',
52
+ // 'pendingProps',
53
+ // 'lastEffect',
54
+ // 'firstEffect',
55
+ // 'tag',
56
+ // 'baseState',
57
+ // 'baseQueue',
58
+ // 'dependencies',
59
+ // 'Consumer',
60
+ // 'context',
61
+ // '_currentRenderer',
62
+ // '_currentRenderer2',
63
+ // 'mode',
64
+ // 'flags',
65
+ // 'nextEffect',
66
+ // 'sibling',
67
+ // 'create',
68
+ // 'deps',
69
+ // 'next',
70
+ // 'destroy',
71
+ // 'parentSub',
72
+ // 'child',
73
+ // 'key',
74
+ // 'return',
75
+ // 'children',
76
+ // '$$typeof',
77
+ // '_threadCount',
78
+ // '_calculateChangedBits',
79
+ // '_currentValue',
80
+ // '_currentValue2',
81
+ // 'Provider',
82
+ // '_context',
83
+ // 'stateNode',
84
+ // 'elementType',
85
+ // 'type',
86
+ // ];
87
87
88
88
const defaultMargin = {
89
89
top : 30 ,
@@ -190,37 +190,37 @@ export default function ComponentMap({
190
190
const formatProps = ( data ) => {
191
191
console . log ( 'ComponentMap' , { data } ) ;
192
192
const propsFormat = [ ] ;
193
- const nestedObj = [ ] ;
193
+ // const nestedObj = [];
194
194
for ( const key in data ) {
195
195
if (
196
196
// data[key] !== 'reactFiber' &&
197
197
typeof data [ key ] !== 'object'
198
198
// exclude.includes(key) !== true
199
199
) {
200
200
propsFormat . push ( < p className = 'stateprops' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
201
- } else if (
202
- // data[key] !== 'reactFiber' &&
203
- typeof data [ key ] === 'object'
204
- // exclude.includes(key) !== true
205
- ) {
206
- const result = formatProps ( data [ key ] ) ;
207
- nestedObj . push ( result ) ;
208
201
}
202
+ // else if (
203
+ // data[key] !== 'reactFiber' &&
204
+ // typeof data[key] === 'object'
205
+ // exclude.includes(key) !== true
206
+ // ) {
207
+ // const result = formatProps(data[key]);
208
+ // nestedObj.push(result);
209
+ // }
209
210
}
210
- if ( nestedObj ) {
211
- propsFormat . push ( nestedObj ) ;
212
- }
213
-
214
- return propsFormat ;
211
+ // if (nestedObj) {
212
+ // propsFormat.push(nestedObj);
213
+ // }
214
+ if ( propsFormat . length ) return propsFormat ;
215
215
} ;
216
216
217
217
const formatContext = ( data ) => {
218
- const propsFormat = [ ] ;
219
- const nestedObj = [ ] ;
218
+ const contextFormat = [ ] ;
219
+ // const nestedObj = [];
220
220
for ( const key in data ) {
221
- propsFormat . push ( < p className = 'stateprops ' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
221
+ contextFormat . push ( < p className = 'statecontext ' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
222
222
}
223
- return propsFormat ;
223
+ return contextFormat ;
224
224
} ;
225
225
226
226
const formatState = ( state ) => {
0 commit comments