@@ -20,70 +20,70 @@ import getLinkComponent from './getLinkComponent';
2020import { toggleExpanded , setCurrentTabInApp } from '../../../actions/actions' ;
2121import { useStoreContext } from '../../../store' ;
2222
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+ // ];
8787
8888const defaultMargin = {
8989 top : 30 ,
@@ -190,37 +190,37 @@ export default function ComponentMap({
190190 const formatProps = ( data ) => {
191191 console . log ( 'ComponentMap' , { data } ) ;
192192 const propsFormat = [ ] ;
193- const nestedObj = [ ] ;
193+ // const nestedObj = [];
194194 for ( const key in data ) {
195195 if (
196196 // data[key] !== 'reactFiber' &&
197197 typeof data [ key ] !== 'object'
198198 // exclude.includes(key) !== true
199199 ) {
200200 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 ) ;
208201 }
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+ // }
209210 }
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 ;
215215 } ;
216216
217217 const formatContext = ( data ) => {
218- const propsFormat = [ ] ;
219- const nestedObj = [ ] ;
218+ const contextFormat = [ ] ;
219+ // const nestedObj = [];
220220 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 > ) ;
222222 }
223- return propsFormat ;
223+ return contextFormat ;
224224 } ;
225225
226226 const formatState = ( state ) => {
0 commit comments