title: React State changing to false automatically without setting it
body: <p>I have this situation where I need to set the sortAscending order to Boolean true or false based on its selection. Once I try to sort it changes the state to true and immediately changes back to false. This is affecting me in Lazy loading of the list.</p>
  
  <pre><code>handleSortRoomsOnClick: function(sortBy) {
      if(sortBy == this.state.sortBy) {
          this.setState({
              isSortAsc: !this.state.isSortAsc,
              page: 1
          });
          this.handleFetchRooms(1, sortBy, this.state.isSortAsc);
      } else {
          this.setState({
              sortBy: sortBy,
              isSortAsc: true,
              page: 1
          });
          this.handleFetchRooms(1, sortBy, true);
      }
  },
  </code></pre>