How to use the flux/stores/search-store.removeListener function in flux

To help you get started, we’ve selected a few flux 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 mistadikay / flux-http-example / src / components / form.js View on Github external
componentWillUnmount: function() {
        searchStore.removeListener(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.removeListener(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.removeListener(actionsConstants.SEARCH_ERROR, this.showError);
    },
    getInitialState: function() {
github mistadikay / flux-http-example / src / components / form.js View on Github external
componentWillUnmount: function() {
        searchStore.removeListener(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.removeListener(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.removeListener(actionsConstants.SEARCH_ERROR, this.showError);
    },
    getInitialState: function() {
github mistadikay / flux-http-example / src / components / form.js View on Github external
componentWillUnmount: function() {
        searchStore.removeListener(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.removeListener(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.removeListener(actionsConstants.SEARCH_ERROR, this.showError);
    },
    getInitialState: function() {