Good morning community
Before I wrote this post I really tried to understand it with google, chatGPT, but for me it’s absolutely unclear WHY this error occurs in this action.
Request: Can someone explain me what I am doing wrong there? As I can see this is the way I should done it… No clue. If you prefer, I can post just the parts of the code/calls aswell.
I have workarounds ready, but I prefer to understand what’s going on with wich reason.
Repo:
https://github.com/nullpunktnull/santris (main branch)
Reproduce error:
Start Game, hold arrowDown to fill tetris-Grid until Game-Over
Source:
In components/SantrisGame.tsx:375 call of gameOver(). This function is imported from context/PauseContext.tsx.
Error:
Rendered fewer hooks than expected. This may be caused by an accidental early return statement.
Thanks for any assistance
nullpunkt
Source link
lol