@@ -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 ,
@@ -188,38 +188,39 @@ export default function ComponentMap({
188188 } ;
189189
190190 const formatProps = ( data ) => {
191+ console . log ( 'ComponentMap' , { data } ) ;
191192 const propsFormat = [ ] ;
192- const nestedObj = [ ] ;
193+ // const nestedObj = [];
193194 for ( const key in data ) {
194195 if (
195- data [ key ] !== 'reactFiber' &&
196- typeof data [ key ] !== 'object' &&
197- exclude . includes ( key ) !== true
196+ // data[key] !== 'reactFiber' &&
197+ typeof data [ key ] !== 'object'
198+ // exclude.includes(key) !== true
198199 ) {
199200 propsFormat . push ( < p className = 'stateprops' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
200- } else if (
201- data [ key ] !== 'reactFiber' &&
202- typeof data [ key ] === 'object' &&
203- exclude . includes ( key ) !== true
204- ) {
205- const result = formatProps ( data [ key ] ) ;
206- nestedObj . push ( result ) ;
207201 }
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+ // }
208210 }
209- if ( nestedObj ) {
210- propsFormat . push ( nestedObj ) ;
211- }
212-
213- return propsFormat ;
211+ // if (nestedObj) {
212+ // propsFormat.push(nestedObj);
213+ // }
214+ if ( propsFormat . length ) return propsFormat ;
214215 } ;
215216
216217 const formatContext = ( data ) => {
217- const propsFormat = [ ] ;
218- const nestedObj = [ ] ;
218+ const contextFormat = [ ] ;
219219 for ( const key in data ) {
220- propsFormat . push ( < p className = 'stateprops' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
220+ // Suggestion: update the front end to display as a list if we have object
221+ contextFormat . push ( < p className = 'statecontext' > { `${ key } : ${ data [ key ] } ` } </ p > ) ;
221222 }
222- return propsFormat ;
223+ return contextFormat ;
223224 } ;
224225
225226 const formatState = ( state ) => {
0 commit comments