For single-page applications such as Vue and Angular, if timers are used on a page, do you need to clear timers when the page is destroyed (Destroy lifecycle)?

For single-page applications such as

Vue and Angular, if timers are used on a page, do you need to clear timers when the page is destroyed (Destroy lifecycle)?

Oct.12,2021

the answer is to be cleared.

here are the timers created during the initial life cycle of the stepThree component. You can see the information printed by the console.

stepOnestepOnestepOnestepThree

Menu