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

Bug: Rendered more hooks than during the previous render. #370

Open
betula opened this issue Jun 7, 2023 · 1 comment
Open

Bug: Rendered more hooks than during the previous render. #370

betula opened this issue Jun 7, 2023 · 1 comment
Labels

Comments

@betula
Copy link

betula commented Jun 7, 2023

I attached archive with small project on Vite that reproduced error:

react-rendered-more-hooks.zip

Screen.Recording.2023-06-07.at.12.04.09.mov
@LaiArturs
Copy link

I am not sure if it is related but might help someone looking for a solution to a similar problem.

I also had a "Rendered more hooks than during the previous render" error. This error showed in Chrome but not in Firefox. Running code in Firefox turend out I had another valid issue with my code: "Each child in a list should have a unique "key" prop".

As soon as I solved this error, "Rendered more hooks than during the previous render" error was also solved.

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

No branches or pull requests

3 participants