Skip to content

Commit

Permalink
always clear poll
Browse files Browse the repository at this point in the history
  • Loading branch information
maarteNNNN committed Oct 3, 2021
1 parent afe0e57 commit c5882c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ export default {
const clearPoll = () => {
if (!props.fn) return;
if (page.value !== 1) return;
intervalActive.value = false;
clearInterval(poller);
};
Expand All @@ -223,6 +222,7 @@ export default {
});
onUnmounted(() => {
clearPoll()
window.removeEventListener('blur', clearPoll);
window.removeEventListener('focus', setPoll);
});
Expand Down

0 comments on commit c5882c8

Please sign in to comment.