나는 내 프로젝트에 + react
redux-form
를 사용redux-form resetForm()이 완료되었음을 어떻게 알 수 있습니까?
//My components
<button type="submit" className="btn btn-primary" onClick={this.getBuildingList.bind(this)}>Search</button>
<button type="button" onClick={this.resetBuildForm.bind(this)}>Reset</button>
//resetBuildingForm function
resetBuildingForm(){
let { dispatch, resetForm, list } = this.props;
resetForm();
//when I resetForm, I want to search again
this.getBuildingList();
}
내가 resetForm 때, 나는 다시 검색 할,하지만 난 REDUX-형태로 상태를 얻을 때, 나는 상태가 오래 얻을 수 있지만, 새로운 것이 아니다, 어떻게 할 수 언제 resetForm 이벤트가 완료되고 상태가 업데이트되는지 압니까?
대단히 감사합니다. – Liaoyf