[Typo]: change info about startTransition, now can be used with async func
未关闭
还没有人认领这个 Issue。
type: typos
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
Summary
Documentation advises against using async functions inside startTransition. However, in the newest changelogs, that has changed, and we can now easily use async functions inside startTransition. Perhaps I misunderstood it.
Page
https://react.dev/reference/react/startTransition
Details
If you read the documentation on react-dev, you can find information about startTransition. However, when you check the changelog on the react GitHub, you will find information about adding an option to use async functions at.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 react.dev 上的 startTransition 参考页面,并将其中关于异步函数的指南与 CHANGELOG-canary.md 中 2023 年 10 月 5 日的对应条目进行比较。确认文档是否已经过时,然后更新页面,使其指南与当前行为和 changelog 保持一致;当有关异步函数的建议准确无误时,工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100