react-component / react-component/table
Do not call hooks inside
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
I upgraded antd to v4.21.0, it used rc-table 7.24.0.
when I move mouse into table, the page crash and show 'Error: Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'

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 reproducing the crash with antd v4.21.0 and rc-table 7.24.0 while moving the mouse into the table. Trace the render path involved in the mouse interaction and identify why hooks are called inconsistently. Done means the same interaction no longer produces the “Rendered fewer hooks than expected” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100