Kelin2025 / vue-timers

Mixin to manage your intervals in Vue.js
MIT License
231 stars 17 forks source link

I get error "Cannot read property 'stop' of undefined" when navigating between pages inside my application #2

Closed acrolink closed 6 years ago

acrolink commented 6 years ago

It is working fine however when I navigate between pages in my application I get this error message in the console log:

vue.esm.js?efeb:1717 TypeError: Cannot read property 'stop' of undefined
    at Object.stop (mixin.js?e98f:101)
Kelin2025 commented 6 years ago

:thinking:
It should work fine, all timers are being destroyed in beforeDestroy hook. I'll check it a little later
Can u show code example?

Kelin2025 commented 6 years ago

Hello again. I reworked this plugin and looks like it's fine now.
Use yarn add vue-timers@1.1.2 to update :) If you still have issue, please leave a comment here But note that API have some changes (see README.md)

Kelin2025 commented 6 years ago

Closed due to no activity