On the client side, I am calling handleSubmit like so -
handleSubmit(e, { data: { options: dataToSendBack } });
On the server side in /api/chat/+server.ts file when I check the data property on request, it comes through the first time but all subsequent calls, comes through as undefined
const { messages, data } = await request.json(); console.log(data) // Shows as undefined except the first time
Description
The issue 1270 is still happening.
On the client side, I am calling handleSubmit like so -
handleSubmit(e, { data: { options: dataToSendBack } });
On the server side in /api/chat/+server.ts file when I check the data property on request, it comes through the first time but all subsequent calls, comes through as undefined
const { messages, data } = await request.json(); console.log(data) // Shows as undefined except the first time
Code example
No response
Additional context
No response