title: How can I promise chain a redux / sagas dispatch in React?
body: <p>In my component, I have:</p>
  
  <pre><code>export default connect(
    (state) =&gt; ({
      autocomplete: state.autocomplete,
      search: state.search,
    }),
    (dispatch) =&gt; ({
      onSearch: (location) =&gt; (q) =&gt; dispatch(actions.push(getUrlWithQS(location, { qs: { q } }))),
      onAutocomplete: (q) =&gt; dispatch(actions.autocomplete({ q })),
    }),
    (stateProps, dispatchProps, ownProps) =&gt; ({
      ...stateProps,
      ...dispatchProps,
      ...ownProps,
      onSearch: dispatchProps.onSearch(ownProps.location),
    })
  )(Home)
  </code></pre>
  
  <p>I also have:</p>
  
  <pre><code>  doSearch(location) {
      console.log(this.props.onSearch);
      this.props.onSearch(location)
    }
  </code></pre>
  
  <p>Is it possible for me to make <code>onSearch</code> a promise so I can know when the dispatch is complete?</p>