title: How to call an mobx-state-tree action if a computed view changes?
body: <p>Basically what I'm trying to do is to call an action if a computed view changes.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const Store = types
    .views(self =&gt; ({
      get computedValue() {
        return somethingComputed;
      }
    }))
    .actions(self =&gt; ({
      doSomething() {
        doSomeStuffUsingComputedValue(self.computedValue);
      }
    }));</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to call doSomething action if computedValue changes. I don't have control of the what updates computedValue.</p>
  
  <p>Any idea of how can I achieve this?</p>