Error: Maximum update depth exceeded.
Unanswered
Löwchen posted this in #help-forum
LöwchenOP
I am getting this error when I send a message to the chat with the vercel ai sdk with elk useChat to make a call, and I don't know why it happens.
4 Replies
LöwchenOP
handlesubmit:
const onSubmit = (e: React.FormEvent) => {
e.preventDefault();
if (input.trim()) {
handleSubmit(e);
setShowInitialView(false);
}
};
Entire codebase would be needed
LöwchenOP
LöwchenOP
@James4u (Tag me if needed) ?