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
While it is obviously impossible to "destroy" something in JavaScript it could be great help to make wrappers throw error when operating on destroyed Vue instance. I suggest making emitted (and deprecated emittedByOrder) the only exceptions, cause I can see use cases, when we want to assert instance generated certain events during destroy process.
This will help a lot when introducing enableAutoDestroy(beforeEach) in big codebases to track such hard-to-debug errors
I'm ready to submit PR for this one if team feels this one like a good addition
The text was updated successfully, but these errors were encountered:
A bit related to #1342
While it is obviously impossible to "destroy" something in JavaScript it could be great help to make wrappers throw error when operating on destroyed Vue instance. I suggest making
emitted
(and deprecatedemittedByOrder
) the only exceptions, cause I can see use cases, when we want to assert instance generated certain events during destroy process.This will help a lot when introducing
enableAutoDestroy(beforeEach)
in big codebases to track such hard-to-debug errorsI'm ready to submit PR for this one if team feels this one like a good addition
The text was updated successfully, but these errors were encountered: