Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use circle progress with success percent got "Rendered more hooks than during the previous render." #30685

Closed
1 task done
AiHMin opened this issue May 25, 2021 · 0 comments · Fixed by #30855
Closed
1 task done

Comments

@AiHMin
Copy link

AiHMin commented May 25, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Open link
  • Click the 10 button
  • Then page crashed and browser show Rendered more hooks than during the previous render.

If we change the initial state value of s to any number larger than 0, everything goes fine.
For example useState(0.01).

What is expected?

The Circle Progress's success percent should be add ten percent.

What is actually happening?

Page crashed and browser shown "Rendered more hooks than during the previous render."

Environment Info
antd 4.16.0
React 16.14.0
System macOS 11.3.1
Browser Chrome 90
afc163 added a commit that referenced this issue Jun 4, 2021
`Rendered more hooks than during the previous render`

close #30685
afc163 added a commit that referenced this issue Jun 4, 2021
`Rendered more hooks than during the previous render`

close #30685
afc163 added a commit that referenced this issue Jun 5, 2021
* fix: Progress `type="circle"` error

`Rendered more hooks than during the previous render`

close #30685

* update snapshot

* fix gradient strokeColor

* fix snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant