Skip to content

Commit 99bddc2

Browse files
authored
Merge pull request #234 from saksham-gera/dev
Functionality of loading graphs from previous sessions on hold
2 parents d260a9c + 280b0f7 commit 99bddc2

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

src/GraphWorkspace.jsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useEffect } from 'react';
1+
import React from 'react';
22
import ZoomComp from './component/ZoomSetter';
33

4-
import { actionType as T } from './reducer';
4+
// import { actionType as T } from './reducer';
55
import './graphWorkspace.css';
6-
import localStorageManager from './graph-builder/local-storage-manager';
6+
// import localStorageManager from './graph-builder/local-storage-manager';
77
import TabBar from './component/TabBar';
88
import 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

Comments
 (0)