useEffect documentation missing variable arryas
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
With colleges, we were talking about how reacts useEffect compares the input array and after diving into React code I found out that its length can't vary and didn't find the note in docs.
https://github.com/facebook/react/blob/master/packages/shared/areHookInputsEqual.js
Here's the code chunk with warning handling but it may be good to mention that in docs.
You all are awesome and I love what you are doing with React. Keep rocking 👌
Thanks also @linde12 for bouncing the ideas which led to mutual conclusion
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先阅读链接的 packages/shared/areHookInputsEqual.js 代码,然后在 React 文档网站中找到 useEffect 文档。记录依赖数组的长度不能变化,并在相关的 useEffect 指南明确说明这一限制后,将工作视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100