title: What's the reason for returning the fetch in the redux reddit api example?
body: <p>In the react-redux api example in the following code after the dispatch there's a return. </p>
  
  <p>see here:</p>
  
  <p><a href="http://redux.js.org/docs/advanced/ExampleRedditAPI.html" rel="nofollow noreferrer">http://redux.js.org/docs/advanced/ExampleRedditAPI.html</a></p>
  
  <pre><code>function fetchPosts(subreddit) {
    return dispatch =&gt; {
      dispatch(requestPosts(subreddit))
      return fetch(`https://www.reddit.com/r/${subreddit}.json`) //This Return
        .then(response =&gt; response.json())
        .then(json =&gt; dispatch(receivePosts(subreddit, json)))
    }
  }
  </code></pre>
  
  <p>I was wondering what's the benefit of that return if there is any?</p>
  
  <p>Why not do something like the following:</p>
  
  <pre><code>export function hydrateStore (store) {
    return dispatch =&gt; {
      fetch(someEndPoint) //We don't return
        .then(items =&gt; items.json())
        .then(payload =&gt; {
          // do stuff
        })
        .catch(err =&gt; {
          console.log(err)
        })
    }
  }
  </code></pre>