[P2][开发者 API / Developer APIs] StrictMode、Effects、act 与 Profiler
Nobody has claimed this yet.
- Dominant language
- MoonBit
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 23m
- Merged PRs (30d)
- 28
Description
中文
背景
核心应用能力已基本覆盖,但组件库作者和调试场景仍缺少部分稳定 API。它们的价值低于发布、文档、DOM 和事件可用性,因此列为 P2,并按独立价值逐项选择,而不是一次性追求数量完整。
候选范围与顺序
- 公共 StrictMode helper
useInsertionEffect- 测试 API
act - Profiler
useDebugValue
可量化验收
- 每个 API 在实现前关联 React 19.2 稳定契约并说明目标用户。
- StrictMode/Profiler 使用真实 Chromium lifecycle/callback 计数。
- Effect API 验证执行顺序、cleanup 次数与重新渲染行为。
-
act验证同步和异步更新在断言前完成。 - 每个 API 独立报告测试数与 diagnostics;非预期 diagnostics 为 0。
English
Background
Core application capabilities are largely covered, but component-library authors and debugging workflows still lack several stable APIs. Their value is lower than release delivery, documentation, DOM, and event usability, so this is a P2 objective and each API should be selected for independent value rather than API-count completeness.
Candidate scope and order
- Public StrictMode helper
useInsertionEffect- Testing API
act - Profiler
useDebugValue
Quantitative acceptance
- Before implementation, map each API to its stable React 19.2 contract and identify its target users.
- StrictMode and Profiler use real Chromium lifecycle or callback counts.
- Effect APIs verify ordering, cleanup counts, and rerender behavior.
-
actverifies that synchronous and asynchronous updates settle before assertions. - Report tests and diagnostics for every API independently; unexpected diagnostics are zero.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by selecting one candidate API from the listed order and map it to the React 19.2 stable contract and target users before implementation. Use the stated Chromium lifecycle or callback checks and API-specific effect, act, or diagnostics acceptance criteria to define completion; no files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100