You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snapshot,// from 'tabs[currentTab]' object in 'MainContainer'
30
-
snapshots,// from 'tabs[currentTab].snapshotDisplay' object in 'MainContainer'
31
-
currLocation,// from 'tabs[currentTab]' object in 'MainContainer'
32
-
axSnapshots,
33
-
}=props;
28
+
const{
29
+
snapshot,// from 'tabs[currentTab]' object in 'MainContainer'
30
+
snapshots,// from 'tabs[currentTab].snapshotDisplay' object in 'MainContainer'
31
+
currLocation,// from 'tabs[currentTab]' object in 'MainContainer'
32
+
axSnapshots,
33
+
}=props;
34
34
35
-
constdispatch=useDispatch();
35
+
constdispatch=useDispatch();
36
36
37
-
useEffect(()=>{
38
-
dispatch(setCurrentTabInApp('AxTree'));// dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'tree' to facilitate render.
39
-
},[]);
37
+
useEffect(()=>{
38
+
dispatch(setCurrentTabInApp('AxTree'));// dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'tree' to facilitate render.
39
+
},[]);
40
40
41
-
//removing/adding snapshot at beginning of return statement didn't change anything
42
-
return(
43
-
<>{snapshot&&(
44
-
<JSONTree
45
-
data={axSnapshots}
46
-
// shouldExpandNodeInitially={() => true}
47
-
theme={theme}
48
-
/>
49
-
)}
50
-
</>
51
-
)
52
-
}
53
-
exportdefaultAxTree;
41
+
//removing/adding snapshot at beginning of return statement didn't change anything
0 commit comments