Hi Jamil!

I advise you to look into the beforeDestroy() lifecycle hook. As this would be the place and time when I would clean up after my component before it gets destroyed.

Only take into consideration that EventBus.$off('myEvent') will remove all the listeners for that particular event. To remove a specific component’s specific callback you have to call the $off() with a second argument like EventBus.$off('myEvent', myCallback)

Cheers!

Writing JS, TS, Vue, #C, and fostering teams to release customer value n-times a day. Creator of billid.app and writer on abrickis.me

Writing JS, TS, Vue, #C, and fostering teams to release customer value n-times a day. Creator of billid.app and writer on abrickis.me