Improve doc on componentDidUpdate
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
This issue has been discussed, but seems not resolved.
The docs say
componentDidUpdate() is invoked immediately after updating occurs.
Many will agree that saying "after updating occurs" is rather vague. What is meant with updating? Is it called only when state changes? Or maybe when props changed? Can it be called if neither state, nor props changed?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 React 文档中搜索 componentDidUpdate() 条目,并阅读现有措辞以及 issue #2796 中链接的讨论。明确“updating”的含义,包括是否需要 state 或 prop 发生变化;当生命周期条件得到明确无歧义的说明时,即可认为文档完整。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100