警告:无法调用 setState(或 forceUpdate) [英] Warning: Can't call setState (or forceUpdate)

查看:62
本文介绍了警告:无法调用 setState(或 forceUpdate)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道之前有人问过这个问题,但我应用了 但过了一段时间它挂断了.如果我构建已签名的 apk,则安装时间过长,应用程序在启动后立即崩溃.

应用程序的源代码在这里 请给我思路为什么我仍然收到此警告消息.提前致谢.

解决方案

我没有以某种方式正确使用 React Native 用户通量.所以我对主要在 App.js 上的登录过程的源代码进行了更改.所有更改都可以看作是 github 上针对此问题的stackoverflow question - warning-cant-call-setstate-or-forceupdate"提交消息.

I know this question is asked before but I applied the solutions offered on Warning: Can't call setState (or forceUpdate) on an unmounted component

When I run this program in Expo the program starts and gives warning message "Warning: Can't call setState (or forceUpdate) on an unmounted component ..." but after some time it hangs up. If I build signed apk it takes too much time to install and the application immediately crashes after start up.

The source code of the application is here please give me the idea why I am still getting this warning message. Thanks in advance.

解决方案

I didn't used React native user flux somehow right way. So that I have made changes to source code that mainly on App.js for the login process. All the changes could be seen as "stackoverflow question - warning-cant-call-setstate-or-forceupdate" commit messages on github for this question.

这篇关于警告:无法调用 setState(或 forceUpdate)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆