How to do streaming with next-safe-action #139
Replies: 1 comment 1 reply
-
Do Next.js/React docs talk about streaming in Server Actions? next-safe-action is simply a library built around them so there's not much it can do to change the internal framework behavior. Apparently there's a function called |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Was told above and want to implement this in next-safe-action.
Discussion in Discord.
Docs: https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#forms
My code now for input.
await describeImageAction
is the action. That looks like:I want to store the image that gets passed and save it in my db but I want to do it using this streaming approach.
How can I do this? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions