Next.js Discord

Discord Forum

RangeError: Maximum call stack size exceeded

Unanswered
Mallow bee posted this in #help-forum
Open in Discord
Original message was deleted.

3 Replies

European sprat
I think there's a few things going wrong here. It looks like this is a server component so it should be exported as async but then you can use onClick in it. If you make it a client component then it doesn't need to be async and you need to move the server action definition out of it
I guess maybe a server component here doesn't need to be async but having onClick in here isn't going to work.
Mallow bee
thank you