1- import React , { useEffect } from 'react' ;
1+ import React from 'react' ;
22import ZoomComp from './component/ZoomSetter' ;
33
4- import { actionType as T } from './reducer' ;
4+ // import { actionType as T } from './reducer';
55import './graphWorkspace.css' ;
6- import localStorageManager from './graph-builder/local-storage-manager' ;
6+ // import localStorageManager from './graph-builder/local-storage-manager';
77import TabBar from './component/TabBar' ;
88import Graph from './GraphArea' ;
99
@@ -12,16 +12,17 @@ const GraphComp = (props) => {
1212 const { dispatcher, superState } = props ;
1313 // const [loadedFromStorage, setLoadedFromStorage] = React.useState(false);
1414
15- useEffect ( ( ) => {
16- const allSavedGs = localStorageManager . getAllGraphs ( ) . map ( ( graphID ) => ( {
17- graphID,
18- } ) ) ;
19- dispatcher ( {
20- type : T . ADD_GRAPH_BULK ,
21- payload : allSavedGs ,
22- } ) ;
23- // setLoadedFromStorage(true);
24- } , [ ] ) ;
15+ // The functionality for loading graphs from previous sessions is currently on hold.
16+ // useEffect(() => {
17+ // const allSavedGs = localStorageManager.getAllGraphs().map((graphID) => ({
18+ // graphID,
19+ // }));
20+ // dispatcher({
21+ // type: T.ADD_GRAPH_BULK,
22+ // payload: allSavedGs,
23+ // });
24+ // // setLoadedFromStorage(true);
25+ // }, []);
2526
2627 // Remote server implementation - Not being used.
2728 // useEffect(() => {
0 commit comments