src/store/Wallet.js
// Unsubscribe from the latest blocks.
Unsubscribe from the latest blocks.
Unsubscribe from the latest blocks .
unsubscribe({ commit, getters }) {
      let subscriptions = getters.getSubscriptions
      if (subscriptions.length) {
        subscriptions[1].map((subscription) => {
          subscription.unsubscribe()
        })
        subscriptions[0].close()
        commit('mutate', {key: 'subscriptions', value: []})
      }
    }
unsubscribe ( { commit , getters } ) { let subscriptions = getters . getSubscriptions if ( subscriptions . length ) { subscriptions [ 1 ] . map ( ( subscription ) => { subscription . unsubscribe ( ) } ) subscriptions [ 0 ] . close ( ) commit ( 'mutate' , { key : 'subscriptions' , value : [ ] } ) } }
Unsubscribe from the latest blocks.
Unsubscribe from the latest blocks .