You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//The problem here is that we're setting a new interval evry time we mount the child component. So, we jus need to specify how //the app must behave when we unMount the child component and clear the interval at this point.
onUnmounted(() => {
clearInterval(timer.value);
})
//if we want to reset the counter each time we can reset count.value to 0
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: