facebook/react — pull request #629 by spicyj (2013-12-04 01:53:28+00:00)
Title: Store pending state updates directly in this.state

...and leave the last rendered state in currentState, as suggested in https://groups.google.com/d/msg/reactjs/R61kPjs-yXE/bk5AGv78RYAJ.

This is a breaking change in that now componentWillUpdate and shouldComponentUpdate need to look at this.currentState when comparing, _not_ this.state. (Perhaps that's an argument towards including prevProps and prevState as arguments to those lifecycle methods...)

I don't feel super strongly about this but it seems that others do.