现在用setState 设置更新state的值会报错
来源:6-9 Redux-saga中间件入门(2)
就现在action4359761
2020-08-10
报错如下
index.js:1 Warning: Can’t call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state
directly or define a state = {};
class property with the desired state in the App component.
是因为版本更新了么 我需要设置什么
写回答
1回答
-
Dell
2020-08-16
页面还没挂载,你就反复重新调用setState造成的,代码你发上来看一下。
022021-05-19
相似问题