this.state.foo is different in _onChange and different in render()?
问题 In _onChange method, I wait for a change in this.state.name . On the change _updateArticle method is called: _onChange() { var team = this.getTeamState(); this.setState({name: team}); console.log(this.state.name); //"Boston Celtics" //this should have changed but it didn't this.unbind("articles"); this._updateArticle(); }, then in _updateArticle a new reference is created using this new state. _updateArticle(team) { var teamRef = new Firebase(this.props.baseUrl + team + "/results"); console