title: Spreading Redux Actions does not work in mapDispatchToProps
body: <p>My mapDispatchToProps works like this: </p>
  
  <pre><code>const mapDispatchToProps = dispatch =&gt; ({
    getCourts: () =&gt; dispatch(courtActions.getCourts()),
    selectStyle: style =&gt; dispatch(courtActions.selectStyle(style)),
    selectPoint: index =&gt; dispatch(courtActions.selectPoint(index)),
    sortPoints: sort =&gt; dispatch(courtActions.sortPoints(sort))
  });
  </code></pre>
  
  <p>I want to write it like: </p>
  
  <pre><code>const mapDispatchToProps = dispatch =&gt; ({
        ...courtActions,
  });
  </code></pre>
  
  <p>but when I do that none of my actions work (they dont get dispatched). I'm sure this is something obvious. But what is going on here? </p>
  
  <p>Here is the actions file: </p>
  
  <pre><code>export const getCourts = () =&gt; dispatch =&gt;
    axios
      .get("/courts")
      .then(response =&gt; dispatch({ type: GET_COURTS, payload: response.data }));
  
  export const selectStyle = style =&gt; ({ type: SELECT_STYLE, payload: style });
  
  export const sortPoints = type =&gt; ({ type: SORT_POINTS, payload: type });
  
  export const selectPoint = index =&gt; ({ type: SELECT_POINT, payload: index });
  
  export default {
    getCourts,
    selectStyle,
    sortPoints,
    selectPoint
  };
  </code></pre>