Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in Home (created by Route)
这是提示的错误,明确是在更新redux的时候报的错,很奇怪,
下面是我的源代码:-------------------
hangdleStoreChange() {
const storeData = store.getState();
// 同步数据
this.setState({
defaltGrade: storeData.home_grade.value,
grade_id: storeData.home_grade.index
});