How to use the flux/stores/search-store.on 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
componentDidMount: function() {
        searchStore.on(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.on(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.on(actionsConstants.SEARCH_ERROR, this.showError);
    },
    componentWillUnmount: function() {
github mistadikay / flux-http-example / src / components / form.js View on Github external
componentDidMount: function() {
        searchStore.on(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.on(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.on(actionsConstants.SEARCH_ERROR, this.showError);
    },
    componentWillUnmount: function() {
github mistadikay / flux-http-example / src / components / form.js View on Github external
componentDidMount: function() {
        searchStore.on(actionsConstants.SEARCH_START, this.waitResults);
        searchStore.on(actionsConstants.SEARCH_RESULTS, this.loadResutls);
        searchStore.on(actionsConstants.SEARCH_ERROR, this.showError);
    },
    componentWillUnmount: function() {