title: Redux-thunk async calls and status
body: <p>I am wondering if I understand the pattern of Redux-thunk async operations correctly, in React or React-Native , and how we can do user feedback on the status of operation.</p>
  
  <p>I am feeling either I don't understand the pattern, or there are other pieces of the puzzle.</p>
  
  <p>So, in my React-native application (but it could be for a React as well), I want to call an update REST call, which will return a promise.
  And in case of success or failure, I want to display a message accordingly to the user.</p>
  
  <p>Without Redux-async, I just call the rest, and handle the promise.</p>
  
  <pre><code>callServiceUpdate(data).then(() =&gt; displaySuccessMessage())
  .catch(() =&gt; displayErrorMessage());
  </code></pre>
  
  <p>In Redux training, when we do async, we just dispatch an action, and the action will do a call to the async operation.</p>
  
  <p>so, in the action file where we define the actions:</p>
  
  <pre><code>// in file databaseActions.js
  
  export function updateStatusAction(isSuccess, errorMessage) {
  return {
      type: 'UPDATE_STATUS',
      isSuccess,
      errorMessage };
  }
  
  export function UpdateAction(data) {
     return (dispatch) =&gt; {
       callServiceUpdate(data)
           .then(() =&gt; dispatch(updateStatusAction(true)))
           .catch((error) =&gt; dispatch(updateStatusAction(false, error)));
  }};
  </code></pre>
  
  <p>and dispatching the action will call the service.</p>
  
  <p>and then we dispatch the updateStatusAction, which will update the redux state , and update back the components through props.</p>
  
  <p>But then how to get the success result back to the user?
  Is it through props, and handling componentWillReceiveProps?</p>
  
  <p>isn't that over-complicating ?
  Or there is a simpler way to give feedback for the user?</p>