I wrote a function today that refreshes the page every five seconds
const intervalId = setInterval(function () {
getList();
}, 5000);
remove
onBeforeUnmount(() => {
clearInterval(intervalId);
});
I wrote a function today that refreshes the page every five seconds
const intervalId = setInterval(function () {
getList();
}, 5000);
remove
onBeforeUnmount(() => {
clearInterval(intervalId);
});