next-forge icon indicating copy to clipboard operation
next-forge copied to clipboard

Add Next-Safe-Action as default for server actions

Open pedrocarlo opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Logging and analytics and auth in server actions can be repetitive with clerk and posthog

Describe the solution you'd like Next Safe Action with middleware can solve this problem easily and provide optimisitcUpdates and much more.

Describe alternatives you've considered React Query

https://next-safe-action.dev/docs/define-actions/middleware

pedrocarlo avatar Dec 06 '24 22:12 pedrocarlo

@pedrocarlo Cool idea! If you've got time, I'd love to see a PR so I can understand the impact 🙏

haydenbleasel avatar Dec 09 '24 20:12 haydenbleasel

@pedrocarlo Cool idea! If you've got time, I'd love to see a PR so I can understand the impact 🙏

@haydenbleasel On my list of things to do! Maybe in a day or two I will have a PR!

pedrocarlo avatar Dec 09 '24 23:12 pedrocarlo