Problem detaching listener from Firestore nested / sub-collection
问题 My scenario is a chat app with the following setup in Firestore channels (collection) id (doc) messages (collection) {channelObj} id (doc) messages (collection) {channelObj} etc I've successfully attached a listener to the sub collection messages although I am having trouble detaching that listener, so when I switch from and to chat channels I get duplicate entries as the listeners keep stacking. Here's the script block from my vue file <script> import firestore from 'firebase/firestore'