이제 'componentWillRecieveProps'를 사용하여 Redux 상태의 'nextProps'를 확인하여 완료 여부를 확인합니다. 이 예와 같이 체크하는 방법 데이터가 완료된 후 업데이트 (REACTJS + REDUX)
,if (!nextProps.a.update && !nextProps.a.error &&
nextProps.a.update !== this.props.a.update) {
const oldData = [...this.props.a.data];
const newData = [...nextProps.a.data];
.
.
.
});
}
}
사람이 그것을 확인하는 또 다른 좋은 생각이나요?
감사합니다.
저는 사가에서 사용할 수 없습니다. 무슨 생각 했니? – ppppp