title: Mobx State Tree Flow. How to Know when it's done?
body: <p>I am using mobx state tree and mobx for UI Stuff.</p>
  
  <p>Now when I save something to db, after the request is done I want to update the ui(ie my mobx state). </p>
  
  <p>I need to know when the flow is finished.</p>
  
  <pre><code>  myFlow: flow(function* () {
            // do stuff here.
      }),
  </code></pre>
  
  <p>now I see that a promise is returned, so I thought of just doing</p>
  
  <pre><code>myFlow.then() 
  </code></pre>
  
  <p>which works but I am wondering if this is the property way or if there is another way to do this(async/await? or some internal thing that flow has?)</p>