function invalidate () {
    if (!options.batching) {
      if (!isRendering) render()
    } else {
      if (!frameId) frameId = raf(render)
    }
  }
Tell the app it's dirty and needs to re-render. If batching is disabled
we can just trigger a render immediately, otherwise we'll wait until
the next available frame.