Suspense feature description ambiguity between release note and React API reference
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
On actual (v18.2.0) React API reference page (https://reactjs.org/docs/react-api.html) is written:
Today, lazy loading components is the only use case supported by <React.Suspense>:
and
In the future we plan to let Suspense handle more scenarios such as data fetching. You can read about this in our roadmap.
(also interesting that this link referring into React 16 Roadmap while we have 18 released.)
At the same time React 18 Release Page says that:
In React 18, you can start using Suspense for data fetching in opinionated frameworks like Relay, Next.js, Hydrogen, or Remix.
and looks like 'Suspense for data fetching' can be used and information in React API reference in outdated?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
将 reactjs.org/docs/react-api.html 上的 React API 参考与 React 18 发布页面中关于数据框架里的 Suspense 的部分进行比较。检查 API 参考及其指向 React 16 路线图的链接是否准确描述了受支持的用例,然后更新存在冲突的措辞,并验证两个页面仍保持一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100