Attempted to update component `YellowBox` that has already been unmounted (for failed to mount)
来源:互联网 发布:幂学集训营怎么样 知乎 编辑:程序博客网 时间:2024/06/03 16:58
造成这种情况的场景是:
我在Modal内部定义了一个动画效果,并且设置了duration为300毫秒
这个动画配置所在的方法内部同时执行了
1、关闭Modal 2、跳转到下一界面的方法
导致我回退到当前界面之后再打开Modal的时候出现了
Attempted to update component `TellowBox` that has already been unmounted (for failed to mount)
其实也很简单,我将关闭Modal、跳转界面的方法写在动画的结束的回调方法就OK了,如果大家有同样的报错信息,相信原理是一样的,仔细检查一下整个生命周期是否完整
吐槽一下,Modal既然是作为在Screen界面中引入的组件,为什么他的效果要作用到其他界面,遮盖其他界面效果的展示呢,如果将当前界面推入导航栈的时候能完整保存界面状态,在关闭Modal再跳转界面的场景,体验应该会很好
阅读全文
0 0
- Attempted to update component `YellowBox` that has already been unmounted (for failed to mount)
- popupWindow,Attempted to finish an input event but the input event receiver has already been dispose
- Android报错 Attempted to access a cursor after it has been closed.的解决方法
- android.database.StaleDataException: Attempted to access a cursor after it has been closed
- Android选择图片报错Attempted to access a cursor after it has been closed.
- android.database.StaleDataException: Attempted to access a cursor after it has been clos
- android开发问题:Attempted to access a cursor after it has been closed.
- android.database.StaleDataException: Attempted to access a cursor after it has been closed
- redis异常解决:attempted to load session[xxx] which has been created but not yet serialized.
- Android读取相册时报错:Attempted to access a cursor after it has been closed.
- 异常:android.database.StaleDataException: Attempted to access a cursor after it has been closed
- android.database.StaleDataException: Attempted to access a cursor after it has been closed.
- Caused by: android.database.StaleDataException: Attempted to access a cursor after it has been close
- webpack---粗暴解决Module build failed: Error: The node API for 'babel' has been moved to babel-core
- How to be sure that message via socket.io has been received to the client?
- Attempted to lock an already-locked dir
- Attempted to lock an already-locked dir
- Attempted to lock an already-locked dir
- 【Canvas】HTML5游戏开发的基本流程+P2.js物理引擎实战开发
- Boggle
- POJ:2753-Seek the Name, Seek the Fame
- 序列化反序列化流_属性集合类_小记
- 关于使用FileMapping和直接操作File+缓存的IO性能对比
- Attempted to update component `YellowBox` that has already been unmounted (for failed to mount)
- Json解析,同一个字段,获取的可能是对象,数组,或是null
- 数据结构之二叉树的中序非递归遍历
- [转] 正则表达式之 贪婪与非贪婪模式详解(概述)
- iOS中GCD和多线程
- SQL日期比较
- 读取Jar包中的配置文件
- redis存储session
- logback logback.xml常用配置详解(二)<appender>