title: react naive connect to two redux in the same page
body: <p>this is how i connect to RegisterUser redux
   i want to connect to another redux</p>
  
  <p>RegisterUser to send data to api 
  in the second redux i want to fetch task from api but when i try to connect another redux it is give me this error </p>
  
  <p>invalid value of type object for mapstatetoprops argument when connecting component</p>
  
  <pre><code> const mapStateToProps = state =&gt; {
  return {
     errorid: state.RegisterR.errorid,
      loading: state.RegisterR.loading,
      registersucsess:state.RegisterR.registersucsess
  }}
  
  
   export default connect(mapStateToProps, { RegisterUser })(Register);
  
  
  
  
  
  
  what i try to do something like this const mapStateToProps = state =&gt; {
  return {
      errorid: state.RegisterR.errorid,
      loading: state.RegisterR.loading,
      registersucsess:state.RegisterR.registersucsess,
  
  
      data: state.taskList.data}}
  
  export default connect(mapStateToProps, {fetchTasks},{ RegisterUser })(Register);
  </code></pre>