react-component / react-component/trigger
在 react 18.0.0-rc.0 版本下,会导致页面卡死
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 391
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
复现方式
问题代码
可能是由于 react 18 中新增的 Automatic batching 特性导致的
Contributor guide
No contributing guide indexed for this repository
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 running the linked CodeSandbox reproduction with react 18.0.0-rc.0. Then inspect src/Popup/PopupInner.tsx at lines 120-126, focusing on the reported interaction with React 18 automatic batching. Done means the reproduction no longer causes the page to freeze under that React version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100