Skip to content

Commit

Permalink
WIP Disable debouncedSaveStateToLocalStorage, don't save every half s…
Browse files Browse the repository at this point in the history
…econd
  • Loading branch information
josephfrazier committed Jul 24, 2023
1 parent 091a41d commit 2bac6d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ const debouncedGetVehicleType = debounce(
1000,
);

const debouncedSaveStateToLocalStorage = debounce(self => {
self.saveStateToLocalStorage();
}, 500);
// const debouncedSaveStateToLocalStorage = debounce(self => {
// self.saveStateToLocalStorage();
// }, 500);

const defaultLatitude = 40.7128;
const defaultLongitude = -74.006;
Expand Down Expand Up @@ -720,7 +720,7 @@ class Home extends React.Component {
{
[name]: value,
},
() => debouncedSaveStateToLocalStorage(this),
// () => debouncedSaveStateToLocalStorage(this),
);
};

Expand Down

0 comments on commit 2bac6d9

Please sign in to comment.