swannodette/om — pull request #179 by loganlinn (2014-05-13 21:47:02+00:00)
Title: Prevent forceUpdate() if component not mounted

If a component unmounts between calling set-state! and the time that the
render-queue is processed, calling `forceUpdate()` on the component throws an
`Error`. We effectively want to remove the component from the render-queue when it
unmounts.

This prevents calling `forceUpdate()` when component not mounted when the
render-queue is being processed.

The other option for fixing this is to add a `(-dequeue-render! [this c])` method
to `IRenderQueue` and call from `:componentWillUnmount` in `pure-methods`.