在 react 18.0.0-rc.0 版本下,会导致页面卡死
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先,使用 react 18.0.0-rc.0 运行链接的 CodeSandbox 复现。然后检查 src/Popup/PopupInner.tsx 的第 120-126 行,重点关注报告中与 React 18 自动批处理的交互。完成标准是:在该 React 版本下,运行复现不再导致页面冻结。
由索引模型根据 Issue 内容生成。
描述
复现方式
问题代码
可能是由于 react 18 中新增的 Automatic batching 特性导致的
- 主要语言
- TypeScript
- 星标
- 392
- 派生
- 250
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/trigger 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
react-component/trigger#593 · 1 个 reaction ·
-
useAlign reuses a stale flip decision after the viewport changes (popup stays flipped until reopen)可能已有人在做 @SXongin 于 34 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
react-component/trigger#651 ·
-
Does not work when rendered inside an iframe可能已有人在做 @PinkChampagne17 于 186 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 58/100
react-component/trigger#623 ·
-
useAlign.js: inline style reset to 0 is silently overridden under prefers-reduced-motion CSS (CSSTransition interpolation)可能已有人在做 @baofuen 于 144 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 65/100
react-component/trigger#618 · 1 条评论 ·
-
`collectScroller` is not working as expected when the element is in shadow DOM可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 42/100
react-component/trigger#555 ·
查看 react-component/trigger 的全部 Issue
相似的 Issue
-
dependencies effort: small good first issue priority: low
难度 1/5 1-3 小时 新手友好度 88/100
TMHSDigital/screencast-mcp#509 ·
维护者通常 1 天内回复
-
from-review tech-debt testing
难度 2/5 1-3 小时 新手友好度 82/100
blamechris/chroxy#9520 ·
维护者通常 1 天内回复
-
area:web complexity:S priority:P2 type:chore
难度 2/5 1-3 小时 新手友好度 84/100
nahuelcostac/agent-hub#104 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
snaglet-org/snaglet#78 ·
维护者通常 1 天内回复
-
agent/guide documentation help wanted stage/010-actionable
难度 1/5 1 小时以内 新手友好度 82/100
kubestellar/console-marketplace#1101 ·
维护者通常 1 天内回复