You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
had some trouble linking up the api route that is successfully creating tickets in zendesk with the form submit.
the trouble i was facing was that the request body from the form, when trying to read this on the server it was a ReadableStream. ( i was using a server action to hit an api route, rather than do all the work in the server action)
After lots of searching around I've realised that I didn't need to have any api route- i can do all the 'POST' request within the server action function.
BUT for the below reasons I think I want a "traditional" client component.
i want to do some more fancy client side validation
i want to let the user know how many tickets were created, how many were submitted
i want to alert the user to any typos before they submit
i want to alter the user to any duplicates (i need to do a search and a fetch before user submits form)
The text was updated successfully, but these errors were encountered:
had some trouble linking up the api route that is successfully creating tickets in zendesk with the form submit.
the trouble i was facing was that the request body from the form, when trying to read this on the server it was a ReadableStream. ( i was using a server action to hit an api route, rather than do all the work in the server action)
After lots of searching around I've realised that I didn't need to have any api route- i can do all the 'POST' request within the server action function.
BUT for the below reasons I think I want a "traditional" client component.
The text was updated successfully, but these errors were encountered: