setState가 즉시 업데이트되지 않음 나는 할 일을 신청하고 있다.이것은 문제를 일으키는 코드의 매우 간단한 버전입니다.체크박스가 있습니다. Writing Item 체크박스를 호출하는 함수는 다음과 같습니다. checkPencil(){ this.setState({ pencil:!this.state.pencil, }); this.props.updateItem(this.state); } updateItem은 디스패치를 위해 redx로 매핑되는 함수입니다. function mapDispatchToProps(dispatch){ return bindActionCreators({ updateItem}, dispatch); } 문제는 업데이트를 호출할 때항목 작업 및 console.log 상태. 항상 1단계 늦습..