JavaShuo
栏目
标签
react native invariant violation: Maximum update depth exceeded.This can happen when a component rep
时间 2021-01-03
标签
react native
栏目
React
繁體版
原文
原文链接
这个原因是在render中使用了setState,导致了重复刷新,render函数死循环了。 如果生成的控件的componentDidMount等加载时运行的函数中含有setState,那么也不能在render中生成这个控件,而要在 componentWillMount中生成这个控件,否则也会造成死循环。
>>阅读原文<<
相关文章
1.
react Maximum update depth exceeded. This can happen when a component repeatedly calls...
2.
[React] Maximum update depth exceeded
3.
react-native can only update..
4.
Invariant Violation: "Example" has not been registered. This can happen if:
5.
Invariant Violation: Invariant Violation: requireNativeComponent: "RNSVGLinearGradient" was not foun
6.
Wait… What Happens When my React Native Application Starts? — An In-depth Look Inside React Native
7.
React 关于Warning: setState(...): Can only update a mounted or mounting component.
8.
【React Native 报错】Invariant Violation: Application xxx has not been registered
9.
Can't perform a React state update on an unmounted component.
10.
React Native Component
更多相关文章...
•
SQLite Update 语句
-
SQLite教程
•
PHP MySQL Update
-
PHP教程
•
漫谈MySQL的锁机制
•
Kotlin学习(一)基本语法
相关标签/搜索
happen
rep
violation
invariant
depth
React Native
native+react
React-Native
maximum
component
React
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
外部其他进程嵌入到qt FindWindow获得窗口句柄 报错无法链接的外部符号 [email protected] 无法被([email protected]@[email protected]@@引用
2.
UVa 11524 - InCircle
3.
The Monocycle(bfs)
4.
VEC-C滑窗
5.
堆排序的应用-TOPK问题
6.
实例演示ElasticSearch索引查询term,match,match_phase,query_string之间的区别
7.
数学基础知识 集合
8.
amazeUI 复择框问题解决
9.
背包问题理解
10.
算数平均-几何平均不等式的证明,从麦克劳林到柯西
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
react Maximum update depth exceeded. This can happen when a component repeatedly calls...
2.
[React] Maximum update depth exceeded
3.
react-native can only update..
4.
Invariant Violation: "Example" has not been registered. This can happen if:
5.
Invariant Violation: Invariant Violation: requireNativeComponent: "RNSVGLinearGradient" was not foun
6.
Wait… What Happens When my React Native Application Starts? — An In-depth Look Inside React Native
7.
React 关于Warning: setState(...): Can only update a mounted or mounting component.
8.
【React Native 报错】Invariant Violation: Application xxx has not been registered
9.
Can't perform a React state update on an unmounted component.
10.
React Native Component
>>更多相关文章<<