react-component / react-component/table

Do not call hooks inside

Open
#827 0 comments 9 reactions 0 assignees View on GitHub

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.'
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.