How to use the bitsharesjs.ChainStore.unsubscribe function in bitsharesjs

To help you get started, we’ve selected a few bitsharesjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitshares / bitshares-ui / app / App.jsx View on Github external
componentWillUnmount() {
        window.removeEventListener("resize", this._getWindowHeight);
        NotificationStore.unlisten(this._onNotificationChange);
        ChainStore.unsubscribe(this._chainStoreSub);
        clearInterval(this.syncCheckInterval);
    }
github bitshares / bitshares-ui / app / components / Account / NestedApprovalState.jsx View on Github external
componentWillUnmount() {
        ChainStore.unsubscribe(this._updateState);
    }
github bitshares / bitshares-ui / app / stores / AccountStore.js View on Github external
reset() {
        if (this.state.subbed) ChainStore.unsubscribe(this.chainStoreUpdate);
        this.setState(this._getInitialState());
    }
github bitshares / bitshares-ui / app / components / Utility / BindToChainState.jsx View on Github external
componentWillUnmount() {
            ChainStore.unsubscribe(this.update);
        }
github bitshares / bitshares-ui / app / components / Account / Proposals.jsx View on Github external
componentWillUnmount() {
        ChainStore.unsubscribe(this.forceUpdate);
    }
github bitshares / bitshares-ui / app / components / Dashboard / MarketsTable.jsx View on Github external
componentWillUnmount() {
        ChainStore.unsubscribe(this.update);
    }
github bitshares / bitshares-ui / app / stores / BrainkeyStore.js View on Github external
static closeInstance(name) {
        var instance = BrainkeyStoreFactory.instances.get(name);
        if (!instance) throw new Error("unknown instance " + name);
        var subscribed_instance_key = name + " subscribed_instance";
        var subscribed_instance = BrainkeyStoreFactory.instances.get(
            subscribed_instance_key
        );
        BrainkeyStoreFactory.instances.delete(subscribed_instance_key);
        ChainStore.unsubscribe(subscribed_instance);
        instance.clearCache();
    }
}
github bitshares / bitshares-ui / app / App.jsx View on Github external
componentWillUnmount() {
        window.removeEventListener("resize", this._getWindowHeight);
        NotificationStore.unlisten(this._onNotificationChange);
        ChainStore.unsubscribe(this._chainStoreSub);
        clearInterval(this.syncCheckInterval);
    }