用react在componentDidMount下ajax 偶尔会出现这种错误Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Timer component.大概是从DOM中移除了react组件,这时才调用setState改变组件的状态但是印象里vue好像不会出现类似的报错是因为渲染机制的不同吗?请大神们赐教 谢谢
添加回答
举报
0/150
提交
取消
