title: Mithril: cannot m.redraw with m.render
body: <p>I have an app where I want to control when to redraw the view.</p>
  
  <p>I can make it work using <code>m.mount</code> and <code>m.redraw</code>:</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>var count = 0;
  
  var Counter = {
      view: function() {
          return m('main', [
              m('h1', ('Count: ' + count))
          ])
      }
  }
  
  m.mount(document.body, Counter);
  
  window.setInterval(function () {
      count++;
      m.redraw();
  }, 200);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;body&gt;
      &lt;script src="https://unpkg.com/mithril/mithril.js"&gt;&lt;/script&gt;
      &lt;script src="index.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But if i use <code>m.render</code> (because I don't need mithril to autoredraw) it no longer works:</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>var count = 0;
  
  var Counter = {
      view: function() {
          return m('main', [
              m('h1', ('Count: ' + count))
          ])
      }
  }
  
  m.render(document.body, m(Counter)); // &lt;-- The only changed line
  
  window.setInterval(function () {
      count++;
      m.redraw();
  }, 200);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;body&gt;
      &lt;script src="https://unpkg.com/mithril/mithril.js"&gt;&lt;/script&gt;
      &lt;script src="index.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I make mithril redraw when using <code>m.render</code> instead of <code>m.mount</code>?</p>