Top level "use server" doesn't seem to work
Hey all, I've noticed that I put "use server" at the top of the file, it doesn't seem to actually treat the functions in the file as server functions, and the actions don't work as expected.
I wanted to ask here before filing an issue, as I feel like maybe I am misunderstanding.
For example, this seems to work:
However, this throws an error when I try to call these functions:
Is this intended behavior?
I wanted to ask here before filing an issue, as I feel like maybe I am misunderstanding.
For example, this seems to work:
However, this throws an error when I try to call these functions:
Is this intended behavior?
