Skip to content

Commit

Permalink
wrap up
Browse files Browse the repository at this point in the history
  • Loading branch information
kunika committed Jun 22, 2024
1 parent 25edf77 commit be6b3b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,18 @@ const App = () => {
getBarData();
getScatterData();

// To enable dynamic/live update of data and visualizations, uncomment the following block and
// the 'clearInterval(...)' line in the return statement below.
/*
const intervalId = setInterval(() => {
getBarData();
getScatterData();
}, 60000 * 2) // 60000 milliseconds = 1 minute
*/

// Clean up
return () => {
clearInterval(intervalId);
//clearInterval(intervalId);
setBarData({});
setScatterData({});
}
Expand Down

0 comments on commit be6b3b3

Please sign in to comment.