Next 13.4 server action
Answered
Alaskan Husky posted this in #help-forum
Alaskan HuskyOP
Before v13.4, I could return values from server actions, is this no longer possible? It seems to always return undefined.
Answered by Alaskan Husky
@aardani I found the issue to be related to how I was passing the headers in my middleware.
12 Replies
thats weird
need more information
@aardani thats weird
Alaskan HuskyOP
@aardani
am I doing anything wrong? This used to work before I upgraded to v14.0.1 this weekend
Alaskan HuskyOP
on the video, I'm explicitly returning a string from the server action, but I get
undefined in the clienti meant reproduce the bug on a new repository
Alaskan HuskyOP
ah ok, let me try that
Alaskan HuskyOP
@aardani I found the issue to be related to how I was passing the headers in my middleware.
Answer
Alaskan HuskyOP
I thought these were equivalent