为了账号安全,请及时绑定邮箱和手机立即绑定

报错误了。求解

老师报这个错误是怎么回事: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 Player component.

正在回答

1 回答

通常是因为组件并没有装载上便开始执行setState({})建议按照这个处理:https://www.cnblogs.com/zyl-Tara/p/7998590.html

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
使用React构建一款音乐播放器
  • 参与学习       26488    人
  • 解答问题       156    个

从零开始使用React构建一款音乐播放器

进入课程

报错误了。求解

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号