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
Actually there are no information regarding the necessity to "unsubscribe" store watch on component destroy.
It would be good to set a warning on the API documentation (https://vuex.vuejs.org/en/api.html) to let users know that without explicit unsubscription, the watch will be keep even after component destroy.
This issue has been reported here #599 and closed as a won't fix.
This problem cause memory leak and in most of the case errors extremely hard to debug.
A new entry in menu to explain how to use watch (and then the tips for the unsubscription).
It could be great to give a better knowledge of this feature.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Actually there are no information regarding the necessity to "unsubscribe" store watch on component destroy.
It would be good to set a warning on the API documentation (https://vuex.vuejs.org/en/api.html) to let users know that without explicit unsubscription, the watch will be keep even after component destroy.
This issue has been reported here #599 and closed as a won't fix.
This problem cause memory leak and in most of the case errors extremely hard to debug.
What does the proposed API look like?
For a minimalist resolution
A warning quote in https://vuex.vuejs.org/en/api.html .
Nice to have
A new entry in menu to explain how to use
watch
(and then the tips for the unsubscription).It could be great to give a better knowledge of this feature.
The text was updated successfully, but these errors were encountered: