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.
Excel教程:排序-筛选-切片-插入表格
2.
ZigBee ProfileID,DeviceID,ClusterID
3.
二维码背后不能不说的秘密Part1~
4.
基于迅为i.MX6平台 | 智能家居远程监控系统
5.
【入门篇】ESP8266直连智能音箱(天猫精灵)控制智能灯
6.
MongoDB安装问题
7.
【建议收藏】22个适合程序员多逛逛的网站
8.
【建议收藏】10个适合程序员逛的在线社区
9.
Attention-Based SeriesNet论文读后感
10.
Flutter中ListView复用原理探索
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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
>>更多相关文章<<